| | | Forum Newbie
       
Group: Forum Members Last Login: Wednesday, August 20, 2008 Posts: 2, Visits: 11 |
| Hi,
I'm developing a custom activity that make some calculations and returns that value to the workflow.
I'm thinking to store these values on the workflow's variables, but i need to choose the destination variable on the process designer.
Actually, i'm stuck on the actions.xml, on the properties definition. How can i make some "variable chooser" to my activity on the process designer and how can i set the result of the calculation into the choosed variable?
Thanks in advance!
Willians S. Schneider. |
| | | | Supreme Being
       
Group: Forum Members Last Login: Tuesday, November 11, 2008 Posts: 166, Visits: 704 |
| Hi Willians, Define a property of type “workflowmemo”, which can be used to select the variable at run time.
Regards, Bineesh |
| | | | Forum Newbie
       
Group: Forum Members Last Login: Wednesday, August 20, 2008 Posts: 2, Visits: 11 |
| Thanks for your reply.
Adding one more question, how can i update the variable on c# code, inside the Run method of my activity ?
Thanks. |
| | | | Supreme Being
       
Group: Forum Members Last Login: Tuesday, August 19, 2008 Posts: 132, Visits: 425 |
| | Hi, The CurrentContext object passed as parameter in the Run method has information of the running workflow instance. The same object has variable and content information. You can use the below code to update a variable value from the Activity Run method. CurrentContext.Variables["MyVariable"].Value = "Value"; CurrentContext.SaveVariables(); regards,
Moderator |
| |
|
|