Using Activity Designer's databus output in activities other than Log Message

dale_
Tera Guru

Hi,

I have created a few PowerShell activities using the Activity Designer and they are working well. I have an output configured to send executionResult.errorMessages to a variable called activityOutput.errorMessages using direct parsing. In my workflow that uses this activity, I am able to drag my variable from the Data tab into a Log Message activity. This works as expected - the PowerShell error is stated in the Log.

My issue is with using the ${data.get(21).errorMessages} variable anywhere else. It doesn't seem to work in the same way as scratchpad variables. I want any PowerShell errors to be saved to a task description or work note so that the Resolver will know what went wrong (e.g. they will see that the user does not exist in Active Directory).

Are there any other activities that accept databus outputs? I've tried Run Script, Set Values, Catalog Task, etc.

I'm using Fuji Patch 10.

1 ACCEPTED SOLUTION

dale_
Tera Guru

Hah, I figured this out.



I need to use data.get(21).errorMessages in my script field, not ${data.get(21).errorMessages}. It works fine now!


View solution in original post

6 REPLIES 6

dale_
Tera Guru

Hah, I figured this out.



I need to use data.get(21).errorMessages in my script field, not ${data.get(21).errorMessages}. It works fine now!


Hi ,



I have tried to use data.get(21).errorMessages in my workflow catalog for putting error message in description but no luck.


Cool Cool, your index likely is different number. If you open the workflow up in the workflow editor, to the right side of the screen you should see a data tab. You can expand it and you will see the different options. Find the one you are looking for and take note of the number on it. Additionally, you can expand it to see all of the variables that are in it, so you might have something different than errorMessages.



It is also worth noting that if you remove the activity from the canvas, then add it back, it likely (actually it should) have a different number.



Thanks!


Luiz Lucena
Mega Sage

Hi Dale, 

Hope you can help with one doubt here. 

What the numbers mean between the parenthesis?

data.get(21)

 

Thanks,