# Class TaskFlowVisitor OptimaJet.Workflow.BpmnPlugin.Import.TaskFlowVisitor The TaskFlowVisitor class is responsible for visiting and processing the flows (ingoing or outgoing) of a BPMN task. Namespace: [OptimaJet.Workflow.BpmnPlugin.Import](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/) ```csharp public class TaskFlowVisitor : BaseFlowVisitor ``` ## Type Hierarchy - [BaseVisitor](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/BaseVisitor/) - [BaseFlowVisitor](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/BaseFlowVisitor/) - TaskFlowVisitor Current type ## Methods `public void AddOutgoingFlow(TTask task, TSequenceFlow flow, BpmnConverterContext context)` Adds an outgoing transition for the specified task into the process definition. ### Parameters | Name | Type | Description | | --- | --- | --- | | `task` | `TTask` | Task to convert. | | `flow` | `TSequenceFlow` | Outgoing flow to convert. | | `context` | `BpmnConverterContext` | Context for the BPMN conversion process. | `protected virtual void AddOutgoingFlowServiceTask(TServiceTask serviceTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `serviceTask` | `TServiceTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddOutgoingFlowReceiveTask(TReceiveTask receiveTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `receiveTask` | `TReceiveTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddOutgoingFlowUserTask(TUserTask userTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `userTask` | `TUserTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddOutgoingFlowBusinessRuleTask(TBusinessRuleTask businessRuleTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `businessRuleTask` | `TBusinessRuleTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddOutgoingFlowManualTask(TManualTask manualTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `manualTask` | `TManualTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddOutgoingFlowScriptTask(TScriptTask scriptTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `scriptTask` | `TScriptTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddOutgoingFlowGenericTask(TTask genericTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `genericTask` | `TTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void AddOutgoingFlowSendTask(TSendTask sendTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `sendTask` | `TSendTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `public void UpdateIncomingFlow(TTask task, TSequenceFlow flow, BpmnConverterContext context)` Updates the incoming transition if necessary for the specified task. ### Parameters | Name | Type | Description | | --- | --- | --- | | `task` | `TTask` | Task to convert. | | `flow` | `TSequenceFlow` | Incoming flow to convert. | | `context` | `BpmnConverterContext` | Context for the BPMN conversion process. | `protected virtual void UpdateIncomingFlowServiceTask(TServiceTask serviceTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `serviceTask` | `TServiceTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void UpdateIncomingFlowReceiveTask(TReceiveTask receiveTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `receiveTask` | `TReceiveTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void UpdateIncomingFlowUserTask(TUserTask userTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `userTask` | `TUserTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void UpdateIncomingFlowBusinessRuleTask(TBusinessRuleTask businessRuleTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `businessRuleTask` | `TBusinessRuleTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void UpdateIncomingFlowManualTask(TManualTask manualTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `manualTask` | `TManualTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void UpdateIncomingFlowScriptTask(TScriptTask scriptTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `scriptTask` | `TScriptTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void UpdateIncomingFlowSendTask(TSendTask sendTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `sendTask` | `TSendTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | `protected virtual void UpdateIncomingFlowGenericTask(TTask genericTask, TSequenceFlow flow, BpmnConverterContext context)` ### Parameters | Name | Type | Description | | --- | --- | --- | | `genericTask` | `TTask` | | | `flow` | `TSequenceFlow` | | | `context` | `BpmnConverterContext` | | [Previous SubprocessNodeVisitor](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/SubprocessNodeVisitor/) [Next TaskNodeVisitor](https://api.workflowengine.io/bpmn-plugin/OptimaJet.Workflow.BpmnPlugin.Import/TaskNodeVisitor/)