Can you suggest how schedule a Process?

Certified Lead Developer

Hi, 

I'm trying to schedule a process using start node. Below is the screen shot.

If I use pp!timezone I'm getting below.

Problem: An error has occurred in evaluation of an expression for a Start Event.
Details: ERROR:EVAL:@reason=Domain pp is valid only in execution
Recommended Action: Examine and correct the expressions on the Start Event's Event Properties.

If I'm using pm!timezone I'm getting a problem. The clients are at US and I'm working from India. If schedule 1 AM it is not executing correctly.

I want to schedule a process at 1 AM at US time zone.

How to schedule it. Please suggest.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    I did a but of research and came up with a nice idea.

    The plugin "Content Tools" provides a function to retrieve some details about a process model. Including the timestamp of the last publish.

    You can add an initial XOR node to check whether that date is more than 5 minutes in the past. This way, you skip the first process initiation.

    a!localVariables(
      local!details: split(getprocessmodeldetailsbyuuid(ri!uuid), ", "),
      local!lmo: index(
        local!details,
        a!forEach(
          items: local!details,
          expression: if(
            find("Last Modified on", fv!item),
            fv!index,
            {}
          )
        ),
        ""
      ),
      local!splitLmo: split(local!lmo, ": "),
      if(
        count(local!splitLmo) <> 2,
        error("Cannot extract last modified date: " & local!details),
        todatetime(local!splitLmo[2])
      )
    )

  • 0
    Certified Lead Developer
    in reply to Stefan Helzle

    I would literally pay the author(s) of Content Tools $20 in cash right now if they'd make these functions return a Map / Dictionary / JSON string instead of whatever stupid, arbitrary, unorganized, cobbled-together values they currently return Face palm

Reply Children
No Data