How does Process Variables plugin work?

I’m currently using the plugin for Process Variables on recommendation from Martijn.


This screenshots represents a second step in a process which continuesly checks for missing fields on “ServiceLines” and then when a value is null(), it will concat a message to my Process Variables. Although that’s what I want it to do. Sadly, it just returns the last “concatted” string, even when every value of this process should return null() and concat more information to the String.
The message returns the follow:

Service lines incomplete (, Beneficiary amount), are you sure you want to resolve?

Where it should return

Service lines incomplete (Insured amount, Deductible amount, Claim Amount, Beneficiary amount), are you sure you want to resolve?

And this is the set-up in the expression editor, which show the message:

My theory is that with every step I keep resetting the value of the Process Variable, but I don’t know this for sure. Please let me know if you need any more information.

Kind regards,

Jesse

@Jesse, usually the flow is: declare a variable > get a variable > use a decision step (condition) > inside the condition flow (true or false branch) set a variable > go back to get a variable. You could try to move Get step before the decision step.

Example:

So this is the process I’m doing:

  1. Declare Process Variable (name: Missing Fields)
  2. Decision: Is Insured Amount Empty?
    True: Set missing Fields (insured amount)

    False: Continue
  3. Decision: Is deductible Empty?
    True:
    -Get Missing Fields Before Deductible
    -Set missing field (deductible)

    And so on.
  4. In the end: Get result of missing Fields and show this in a dialogue

I think I’m doing the same as you? But I’m trying to save more variables in the Process Variable.

@Jesse, so you can 1) concat values 2) declare and use a list of variables to collect them in one place

Yea I know, but doing exactly that, doesn’t work for me, for some reason.

still open.

@Jesse, do you mean concat or a list?

Hey Jesse,

In the first screenshot, I can see the mistake:

Every time you set your variable, you are overwriting the current value with the new value. If you want to extend it, make sure to first get the current value and to extend it with the new string. Your expression should look something like this:

get_missing_fields_before_deductible.value.concat(
String:if(…) ) .concat(Messages:load(…)