You are viewing limited content. For full access, please sign in.

Question

Question

Workflow Input Parameters NOT WORKING or MISSING

asked on June 1, 2023 Show version history

Hi all,

 In Laserfiche Cloud, I'm trying to setup a Conditional Decision Branch within a Workflow to determine if the environment is run in TESTING or in PRODUCTION. 

 I have a Business Process that outputs a '$TESTING' Input Parameter to a 'TESTING | PRODUCTION' Workflow.



 Initially, I tried using a BOOLEAN datatype , but ran into a lot of funky problems. (For example, is a 'NULL (None)' value evaluated as true?)

So I'm tracking tokens and trying to start simple...

I've set up a Conditional Decision that has two branches:
LEFT:
  IF all of these conditions are true:
    IF $TESTING is <empty> 

RIGHT:
  (No conditions)

The problems occur when I specify the Input Parameter from the Business Process side.

The other Input Parameters work fine, except for this latest one...



Here is the Business Process History with the Input Parameters:


In the Workflow Monitor, the 3rd Parameter is missing!



Here is the Workflow Branch:


 The $TESTING Input Parameter has the instance ID token attached, (I've tried random string data as well, it really shouldn't matter as long as it isn't empty). I've tried this as a Boolean, Integer, and it always seems to come back '(None)' or pass as <empty>. I tried disabling Track Tokens just to see if it was overriding the input parameter, but now I'm convinced that the $TESTING Input Parameter is not making it for some odd reason.

 Pretty lost on this, any help is appreciated.

 
 

0 0

Answer

SELECTED ANSWER
replied on June 2, 2023

Solution:

 It seems that the $ at the beginning of the Variable was the issue. I've found some interesting nuances for escape characters that aren't particularly intuitive to me (I'm just learning Javascript and don't use Regular Expressions all too much).

'/' I found also escaped tokens when trying to specify directories. The Conditional Branch works perfectly now and the variable tracks.

 

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.