Invoke activity - Transfer default value

When creating an invoke activity, how do you have the variable values to transfer from the main to the invoked activity?

I have attached a test. I have an initial value assigned to a variable but I can not see it when trying to display it in the invoked task. Also, if I re-assign the value within the Invoked Task, I don’t see the value changing when going back to the main process.
InvokedTaskTest.xaml (6.6 KB)
Main.xaml (5.2 KB)

Using arguments, that is why they exist! :slight_smile:

I did try with arguments (attached) but I can not manage to make it workMain.xaml (5.5 KB)
InvokedTaskTest.xaml (6.9 KB)

Hello again,

In the main workflow you have the ‘message2’ argument.
The test workflow has its own arguments.

When you invoke the test workflow from inside the main, you need to link those arguments. This means that when you edit the arguments in the invoke, you need to say ‘I link message2 argument from the calling workflow with message2 argument of the invoked workflow’.

For this reason, try to edit the arguments and for Message2 argument, put Message2 as value.

I hope it makes sense now.

Kind regards,
Dimitrios

1 Like

Thanks @dntakoulas I managed to make it work.

I’m attaching the examples so that it might help someone.

Still though, I don’t understand the difference between Edit/Import arguments

InvokedTaskTest.xaml (6.9 KB)
Main.xaml (5.2 KB)