Package: MyToolkit (PCL)
Platforms: All (PCL)
A workflow activity describes one state of a workflow definition. Important:
An activity must not contain instance state, the properties of activities are parameters which belong to the definition and which parameterize all instances.
The idea of the WorkflowActivityBase class is to inherit from it and override the
public class MockActivity : WorkflowActivityBase
public override Task<WorkflowActivityResult> CompleteAsync(WorkflowInstance instance,
WorkflowDefinition definition, WorkflowActivityArguments args,
// TODO: Add your logic here
return Task.FromResult(new WorkflowActivityResult(true));
method has to return a
object which contains the description of the next activities, a value indicating whether the execution was successful and a custom result value.
TODO: Describe PrepareAsync method