passing variables form workflow to subprocess workflow
I have a workflow (W) and a subprocess workflow (SP).
W has a variable (var1). W call subprocess SP and I need to pass variable var1 to SP.
Thanks.
I have a workflow (W) and a subprocess workflow (SP).
W has a variable (var1). W call subprocess SP and I need to pass variable var1 to SP.
Thanks.
Hi,
If you declare var1 as a taskdefinition variable, it is automatically visible to SubProcess.
If you do not want to declare var1 as a taskdefinition variable, use set method in one of the activities of the taskdefinition. But make sure you do not declare var1 as an activity level variable while using set method as doing so would make it visible only to that particular activity.
<set name='var1'>
<ref>xyz</ref>
</set>
Using a set method makes it a global variable which can be accessed by its child subprocesses.
Thanks,
Swatz.
Hi!
I've tried passing the variable as argument and result from workflow to subprocess and it works. But your solution it seems more elegant. I will prove it.
Thank you