www.skelta.com
Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » BPM.NET 2007/Sharepoint Accelerator 2007 » BPM.NET 2007/Sharepoint Accelerator 2007 » Application Development » Custom Activity


Custom ActivityExpand / Collapse
Author
Message
Posted Monday, August 18, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.
Post #919
Posted Tuesday, August 19, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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

Post #920
Posted Tuesday, August 19, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.
Post #922
Posted Tuesday, August 19, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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

Post #923
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
-
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.

All times are GMT -5:00, Time now is 5:24pm

 
Execution: 0.141.16 queries.Compression Enabled.

Copyright © 2002 - 2007 Skelta Software. All rights reserved. Tel: 1 (703) 229-6732 | Email:sales@skelta.com
Skelta - A BPM Workflow Software Company