Developer FAQ
How to start and implement a custom workflow from a custom tree?
Answer:
Use the following minimal syntax in the tree markup:
1 | < WorkflowAction Label = "MyLabel" WorkflowType = "MyNamespace.MyWorkflow" /> |
You can obtain the piggybag with the following code:
1 | Dictionary< string , string > piggybag = PiggybagSerializer.Deserialize( this .ExtraPayload); |
And get the parent data item with the following code:
1 2 3 4 | DataEntityTokendataEntityToken = piggybag.GetParentEntityTokens().FindDataEntityToken(typeof(IMyType)); IMyTypeparentMyType = (IMyType)dataEntityToken.Data; |