Class WorkflowService
- Namespace
- Dynamicweb.Security.Workflows
- Assembly
- Dynamicweb.Security.dll
The WorkflowService class is a Domain Service responsible for resolving and creating workflow
public class WorkflowService
- Inheritance
-
WorkflowService
- Inherited Members
Methods
Delete(IEnumerable<int>)
Delete workflow by ids
public void Delete(IEnumerable<int> ids)
Parameters
ids
IEnumerable<int>- The workflow ids to remove
GetAll()
Gets all workflow in solution.
public IEnumerable<Workflow> GetAll()
Returns
- IEnumerable<Workflow>
- The collection of the Workflow.
GetById(int)
Gets workflow by id
public Workflow GetById(int workflowId)
Parameters
workflowId
int- The workflow id
Returns
GetUsages(int)
Return list of groups where workflow is used
public IEnumerable<WorkflowUsage> GetUsages(int workflowId)
Parameters
workflowId
int- The workflow id
Returns
- IEnumerable<WorkflowUsage>
- The collection of the WorkflowUsage.
GetWorkflowsInUse()
Gets all workflow in solution.
public IEnumerable<Workflow> GetWorkflowsInUse()
Returns
- IEnumerable<Workflow>
- The collection of the Workflow.
Save(Workflow)
Save workflow
public Workflow Save(Workflow workflow)
Parameters
workflow
Workflow- The workflow to save
Returns
- Workflow
- Return updated version of the workflow