cancel
Showing results for 
Search instead for 
Did you mean: 

calcutated parameter in a process

luigi_schillaci
Newcomer
0 Kudos

Hi Experts,

Is it possible to create and use calculated parameters in a process?

During the creation of the process instance, I see that there is the possibility to use formulas in defining parameters.

I would like to evaluate the parameter with a value derived from a previous parameter. For example, IP_YEAR is inserted with the value '2020' during the simulation and calculate I_YEAR1 with the formula IP_YEAR-1.

The formula is accepted in the parameter definition but when I run the simulation the function doesn’t work and return me this error “string is too long: "NXI"."Y100VCE000120087": line 70 col 23 (at pos 6209): Assigned value for parameter or variable "IP_YEAR1" exceeds the maximum length of 4 by 5”.

The same error is returned if I calculate IP_YEAR1 with the formula 2020-1.

Which is the correct syntax in the formula definition?

Thank you.

BR.

Stefano

JustineAngeles
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Dear Stefano,

to shortly answer your question you have to put in fixed parameter value and not formula when on simulation. in case you are using these parameters in your logic.. you can put it in your function formula logic.

Disclaimer i dont know what you need but i am just making the scenario simple, and put the result in a field.

FIELD1 = IP_YEAR ; where IP_YEAR is 2020

both formula below will give you the desired output 2020 - 1

FIELD2 = IP_YEAR - IP_MINUS ; where IP_YEAR is 2020 and IP_MINUS = 1

or

FIELD2 = IP_YEAR - 1 (if you want 1 to be fixed) ; where IP_YEAR is 2020

i hope this helped.

Regards,

Justine

Accepted Solutions (0)

Answers (0)