BV Commerce Forum
»
BV Commerce Support
»
Development
»
Sharing context info betweeen workflows
Rank: Member
Joined: 4/8/2008(UTC) Posts: 21
|
Hi I have a situation where I need to pass a different PriceGroup to a Product Workflow and an Order Workflow for a single order. The reason is that there are tasks in both workflows that use the PriceGroup information to calculate prices at both the Product and the Order level. I thought that the workflows called in Order.Calculate() might share the same Context Object that I could pass information through, but I found that different Context objects are created for each workflow.
Perhaps it would be useful for the Order.Calcuate() method to share a single Context Object containing both an Order and a Product?
Marco
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
I would create a custom task for the Order Workflow that runs the Product workflow passing in the context of the order workflow. Set your custom task to be the first step and it will run the product workflow before the rest of the order workflow tasks.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.