I know this is wrong. But i have tried before with the Invoke Workflow File and Arguments in the Timer Stop.xaml. It didn’t worked. The error Message is: Timer Stop: A call target has caused an exception.
And now i am very desperated witch that Situation. I have no more ideas and need help.
I think the problem is, that i can’t get the instantiated variable? Am i right? If so, can the variable stopwatch in Timer start.xaml however transferred to Timer stop.xaml? Or is that generally not possible?
Thanks in advance for feedbacks and answers.
Regards
If the second workflow is invoked then we can pass the value from first workflow to the second with ARGUMENTS
Say for example you have two workflows A and B
Both are created in same project
Now you have Timer start in workflow A
Here create variable in the variable panel and assign the value to that variable which you want to pass it to next workflow B
Now in workflow B you have the Timer stop set of activities
Here create a argument in argument panel with IN direction
Then getting back to workflow A, use a INVOKE WORKFLOW FILE activity and call the workflow B
Click on Import arguments and it will import the created IN argument
Then mention the variable we have created in workflow A
This will pass the value from workflow A to workflow B through the argument created
I have created an argument in the argument-panel with IN Direction.
“Then getting back to workflow A, use a INVOKE WORKFLOW FILE activity and call the workflow B” → Why to use the “Invoke Workflow File”-Activity in Workflow A? Shouldn’t it be in Workflow B? Am i forgetting something or am i messing something up?
When it works at the end, a workflow x should looks like that:
i have tried everything, with in, with out, in/out… every time the same error message. I don’t understand it.
For your Information, it is a library project. My goal is/was, to get the stopwatch functions as an activity in the activity-panel. I don’t know if that makes the difference.
The following orange color means argument is not set completely.
If you open argument panel and there is variable which is same name with argument, it will automatically set. can you try to set in both argument, then run?
“The following orange color means argument is not set completely.”
Oh, i didn’t know that.
Now it works. Oh man, thanks a lot for your patience.
I will try it without the main.xaml now, because i want two activities in the activity-panel. When i publish this project, i will get 3 activities (with main,…).
The create an Library with two workflows A (for Start) and B (for stop), to became two activities in the activ.-panel after publishing, we need in the workflow A an output argument in the argument panel and an output and input variables in the invoke-code arguments. Workflow B need only Input Variables in the argument panel and also in the invoke-code arguments.