I am triggering a workflow on a component X by updating the component values.
In my C# External Activity class i am trying to get the changed value from the above component.Each time i am getting the old value. Workflow version of item is not coming in External Activity.
How can i get the workflow version of Component in External Activity C#. Do i need to manually create the workflow version of component?
Reading of Data :
ComponentData component =
(ComponentData)CoreServiceClient.Read(ActivityInstance.WorkItems[0].Subject.IdRef, new
ReadOptions());
This is how i am reading the workflow component.
Publish the Page :
PublishItem publishItem = new PublishItem();
PublishInstructionData publishInstruction = new PublishInstructionData
{
ResolveInstruction = new ResolveInstructionData()
{
IncludeChildPublications = false,
IncludeWorkflow = true
},
RenderInstruction = new RenderInstructionData()
};
publishItem.Publish(CoreServiceClient, publishInstruction, new String[] { pageTCMUri }, new String[] { previewTarget }, PublishPriority.High);
Just now i checked that new value is getting published to staging as expected.But i want to execute some logic on basis of changed value in component in External Activity.
component
variable has no changes?