Class WorkflowService
- Namespace
- Dynamicweb.Security.Workflows
- Assembly
- Dynamicweb.Core.dll
The WorkflowService class is a Domain Service responsible for resolving and creating workflow
public class WorkflowService
- Inheritance
-
WorkflowService
- Inherited Members
- Extension Methods
Methods
Delete(IEnumerable<int>)
Delete workflow by ids
public virtual void Delete(IEnumerable<int> ids)
Parameters
idsIEnumerable<int>The workflow ids to remove
GetAll()
Gets all workflow in solution.
public virtual IEnumerable<Workflow> GetAll()
Returns
- IEnumerable<Workflow>
The collection of the Workflow.
GetById(int)
Gets workflow by id
public virtual Workflow? GetById(int workflowId)
Parameters
workflowIdintThe workflow id
Returns
GetByIds(IEnumerable<int>)
Gets workflow by id
public virtual IEnumerable<Workflow> GetByIds(IEnumerable<int> workflowIds)
Parameters
workflowIdsIEnumerable<int>The workflow identifiers
Returns
- IEnumerable<Workflow>
The Workflow or null if not found.
Save(Workflow)
Save workflow
public virtual Workflow Save(Workflow workflow)
Parameters
workflowWorkflowThe workflow to save
Returns
- Workflow
Return updated version of the workflow