Solved

Workflow string concatenation

  • 26 April 2023
  • 3 replies
  • 126 views

Userlevel 7
Badge +21

I know that the following will assign 210 to the variable CompanyId (in a script task):

execution.setVariable('CompanyId','210');

What if I want to prepare a KeyRef for this that would contain in the end: 'CompanyId=210^’

I'm looking for something like concatenate. I've tried:

execution.setVariable('KeyRef’,'CompanyId=' + '210' + '^’);

Ultimately I want something like:

execution.setVariable('KeyRef’,'CompanyId=' + ${CompanyId} + '^’);

In this case ${CompanyId} is a variable set in an earlier step of the workflow.

So, my question is how to perform a concatenation in a system task?

icon

Best answer by eqbstal 26 April 2023, 10:16

View original

3 replies

Userlevel 7
Badge +21

Solutions are sometimes to be found in the strangest places.

I used a system task to perform the concatenation:

Notice that I didn't include any quotations

Userlevel 7
Badge +21

In the previous solution I prepared a variable that contains the KeyRef. This KeyRef could then be used in a projection Read option.

I've noticed the following shortcut also works:

 

Userlevel 7
Badge +21

Noticed in the documentation another method to do a concatenation:

https://docs.ifs.com/techdocs/22r1/040_tailoring/500_business_process_automation/050_business_process_modeling/#strings

 

Reply