WorkflowRuntime

WorkflowRuntime


The basic operations:

  • Instance creation
  • Getting the list of available commands
  • Command execution
  • Getting the list of available states to set
  • Set State

 All methods description is here.

Create the instance - Create instance of process.

public void CreateInstance(
       string schemeCode,
       Guid processId,
       string identityId,
       string impersonatedIdentityId,
       IDictionary<string, object> parameters)

Getting the list of available commands - Returns the list of available commands for current state of the process and known user Id.

public IEnumerable GetAvailableCommands(
       Guid processId,
       IEnumerable identityIds,
       string commandNameFilter = null,
       string mainIdentityId = null)

Execution of the command - The call will execute the command.

public void ExecuteCommand(
              Guid processId, 
              string identityId, 
              string impersonatedIdentityId, 
              WorkflowCommand command)

Getting the list of available states to set  - Returns the list of available states, that can be set through the SetState function.

public IEnumerable GetAvailableStateToSet (
       Guid processId,
       CultureInfo culture)

Set state  - The call will set state for the process.

public void SetState(
              Guid processId, 
              string identityId, 
              string impersonatedIdentityId, 
              WorkflowCommand command)