This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Workflow Programatic Vote in Async Scenario

jjlong - Friday, December 2, 2011 2:13 PM:

I have a workflow similar to a shopping scenario. Several steps are performed and then it reaches a "Fulfill Order" activity. Assume the "Fulfill Order" activity sends a web service request or email to a 3rd party to fulfill the order. A couple of days pass, and then the 3rd party notifies me that the order was shipped.

I have a pretty good handle on how to have them post a response back to me. Assuming I can provide the 3rd party an Aras item id which they include in their response along with the fulfillment status, how would I write a server method which can locate the workitem using the id, locate the activity and execute a vote (e.g. "Shipped" or "Out of Stock") based upon the fulfillment status?

My gut tells me it would not take that many statements, but I'm not sure how to trigger the vote, nor the best place to hook in since the workflow data model is:

Workflow Controlled Item  -> Workflow -> Workflow Process -> Workflow Process Activity -> Activity

Any ideas and code samples would be greatly appreciated.



Brian - Sunday, December 4, 2011 12:36 AM:

Hi Jeff,

I have added a Wiki page (http://www.aras.comhttp://www.aras.com/Community/wikis/kb/programmatically-vote-for-a-workflow.aspx) to show how I did a similar thing to this.

Cheers,

Brian.