<list>
  <ProcessDefinition>
    <processDefinitionPK>
      <companyId>1</companyId>
      <processId>Transferência Ginseng</processId>
    </processDefinitionPK>
    <processDescription>Transferência Ginseng</processDescription>
    <instruction>Este flow permite abertura de solicitação de transferências automatizadas, informando qual item será transferido e direcionado para as aprovações corretas.</instruction>
    <active>true</active>
    <publicProcess>false</publicProcess>
    <volumeId>Ginseng Produção</volumeId>
    <categoryId>Transferência</categoryId>
    <managerEngineAllocationId>Grupo</managerEngineAllocationId>
    <managerEngineAllocationConfiguration>&lt;AssignmentController&gt;&lt;Group&gt;CD&lt;/Group&gt;&lt;/AssignmentController&gt;</managerEngineAllocationConfiguration>
    <snapshotFrequency>0</snapshotFrequency>
    <baseDay>0</baseDay>
    <baseMonth>0</baseMonth>
    <periodId>Default</periodId>
    <uniqueCardVersion>false</uniqueCardVersion>
    <keyWord></keyWord>
    <complementsLevel>1</complementsLevel>
    <notifyRequisitionerComplements>true</notifyRequisitionerComplements>
    <notifyManagerComplements>false</notifyManagerComplements>
    <deadlineTime>172800</deadlineTime>
    <warningDeadlineTime>0</warningDeadlineTime>
    <notifyAuthorityComplements>true</notifyAuthorityComplements>
  </ProcessDefinition>
  <ProcessDefinitionVersion>
    <processDefinitionVersionPK>
      <companyId>1</companyId>
      <processId>Transferência Ginseng</processId>
      <version>50</version>
    </processDefinitionVersionPK>
    <versionDescription></versionDescription>
    <formId>43582</formId>
    <editionMode>true</editionMode>
    <updateAttachmentsVersion>true</updateAttachmentsVersion>
    <controlsAttachmentsSecurity>false</controlsAttachmentsSecurity>
    <active>true</active>
    <blockedVersion>false</blockedVersion>
    <counterSign>false</counterSign>
    <openInstances>0</openInstances>
    <bpmnVersion>2</bpmnVersion>
    <processStates/>
    <favorito>false</favorito>
    <inheritFormSecurity>false</inheritFormSecurity>
    <mobileReady>true</mobileReady>
  </ProcessDefinitionVersion>
  <list>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>1</sequence>
      </processStatePK>
      <stateName>Solicitar transferência</stateName>
      <stateDescription>Solicitar transferência</stateDescription>
      <instruction></instruction>
      <deadlineTime>0</deadlineTime>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <engineAllocationConfiguration></engineAllocationConfiguration>
      <selectColleague>1</selectColleague>
      <initialState>true</initialState>
      <notifyAuthorityDelay>false</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>0</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>true</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>100</positionX>
      <positionY>83</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId></periodId>
      <stateType>0</stateType>
      <bpmnType>10</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <noticeExpirationAuthorityTime>0</noticeExpirationAuthorityTime>
      <noticeExpirationRequisitionerTime>0</noticeExpirationRequisitionerTime>
      <noticeExpirationManagerTime>0</noticeExpirationManagerTime>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>4</sequence>
      </processStatePK>
      <stateName>Aprovar Transferência</stateName>
      <stateDescription>Aprovar Transferência</stateDescription>
      <instruction></instruction>
      <deadlineTime>16200</deadlineTime>
      <deadlineFieldName></deadlineFieldName>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <selectColleague>1</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>false</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>0</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>true</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>500</positionX>
      <positionY>280</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId>Expediente Lojas</periodId>
      <stateType>0</stateType>
      <bpmnType>80</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <noticeExpirationAuthorityTime>0</noticeExpirationAuthorityTime>
      <noticeExpirationRequisitionerTime>0</noticeExpirationRequisitionerTime>
      <noticeExpirationManagerTime>0</noticeExpirationManagerTime>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
      <executionType>0</executionType>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>6</sequence>
      </processStatePK>
      <stateName>Emitir NFE de Transf</stateName>
      <stateDescription>Emitir NFE de Transf</stateDescription>
      <instruction></instruction>
      <deadlineTime>57600</deadlineTime>
      <deadlineFieldName></deadlineFieldName>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId>Pool Grupo</engineAllocationId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;Group&gt;CD&lt;/Group&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <selectColleague>1</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>false</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>0</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>true</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>500</positionX>
      <positionY>490</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId></periodId>
      <stateType>0</stateType>
      <bpmnType>80</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <noticeExpirationAuthorityTime>0</noticeExpirationAuthorityTime>
      <noticeExpirationRequisitionerTime>0</noticeExpirationRequisitionerTime>
      <noticeExpirationManagerTime>0</noticeExpirationManagerTime>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
      <executionType>0</executionType>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>18</sequence>
      </processStatePK>
      <stateName>Receber Produtos</stateName>
      <stateDescription>Receber Produtos</stateDescription>
      <instruction></instruction>
      <deadlineTime>7200</deadlineTime>
      <deadlineFieldName></deadlineFieldName>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId>Campo Formulário</engineAllocationId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;FormField&gt;gestor_cc&lt;/FormField&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <selectColleague>1</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>false</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>0</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>true</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>1170</positionX>
      <positionY>284</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId>Expediente Lojas</periodId>
      <stateType>0</stateType>
      <bpmnType>80</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <noticeExpirationAuthorityTime>0</noticeExpirationAuthorityTime>
      <noticeExpirationRequisitionerTime>0</noticeExpirationRequisitionerTime>
      <noticeExpirationManagerTime>0</noticeExpirationManagerTime>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
      <executionType>0</executionType>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>24</sequence>
      </processStatePK>
      <stateName>Verificar problema</stateName>
      <stateDescription>Verificar problema</stateDescription>
      <instruction></instruction>
      <deadlineTime>172800</deadlineTime>
      <deadlineFieldName></deadlineFieldName>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId>Usuário</engineAllocationId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;User&gt;logistica&lt;/User&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <selectColleague>1</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>false</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>0</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>true</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>1400</positionX>
      <positionY>479</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId>Expediente BackOffice, Logística e Motorista</periodId>
      <stateType>0</stateType>
      <bpmnType>80</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <noticeExpirationAuthorityTime>0</noticeExpirationAuthorityTime>
      <noticeExpirationRequisitionerTime>0</noticeExpirationRequisitionerTime>
      <noticeExpirationManagerTime>0</noticeExpirationManagerTime>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
      <executionType>0</executionType>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>31</sequence>
      </processStatePK>
      <stateName>Coletar Produto</stateName>
      <stateDescription>Coletar Produto</stateDescription>
      <instruction></instruction>
      <deadlineTime>43200</deadlineTime>
      <deadlineFieldName></deadlineFieldName>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <selectColleague>1</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>false</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>0</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>true</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>850</positionX>
      <positionY>679</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId>Expediente BackOffice, Logística e Motorista</periodId>
      <stateType>0</stateType>
      <bpmnType>80</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <noticeExpirationAuthorityTime>0</noticeExpirationAuthorityTime>
      <noticeExpirationRequisitionerTime>0</noticeExpirationRequisitionerTime>
      <noticeExpirationManagerTime>0</noticeExpirationManagerTime>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
      <executionType>0</executionType>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>57</sequence>
      </processStatePK>
      <stateName>Entregar Produto</stateName>
      <stateDescription>Entregar Produto</stateDescription>
      <instruction></instruction>
      <deadlineTime>57600</deadlineTime>
      <deadlineFieldName></deadlineFieldName>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId>Campo Formulário</engineAllocationId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;FormField&gt;motoristaEntregaLogin&lt;/FormField&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <selectColleague>1</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>true</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>3600</allowanceAuthorityTime>
      <frequenceAuthorityTime>3600</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>false</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>1100</positionX>
      <positionY>679</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId>Expediente BackOffice, Logística e Motorista</periodId>
      <stateType>0</stateType>
      <bpmnType>80</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <noticeExpirationAuthorityTime>0</noticeExpirationAuthorityTime>
      <noticeExpirationRequisitionerTime>0</noticeExpirationRequisitionerTime>
      <noticeExpirationManagerTime>0</noticeExpirationManagerTime>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
      <executionType>0</executionType>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>99</sequence>
      </processStatePK>
      <stateName>Consultar Entrada</stateName>
      <stateDescription>Consultar Entrada</stateDescription>
      <instruction></instruction>
      <deadlineTime>0</deadlineTime>
      <deadlineFieldName></deadlineFieldName>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <selectColleague>1</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>false</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>0</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>false</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>1600</positionX>
      <positionY>284</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId></periodId>
      <stateType>0</stateType>
      <bpmnType>82</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <noticeExpirationAuthorityTime>0</noticeExpirationAuthorityTime>
      <noticeExpirationRequisitionerTime>0</noticeExpirationRequisitionerTime>
      <noticeExpirationManagerTime>0</noticeExpirationManagerTime>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
      <executionType>1</executionType>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>104</sequence>
      </processStatePK>
      <stateName>Verificar problema de lançamento</stateName>
      <stateDescription>Verificar problema de lançamento</stateDescription>
      <instruction></instruction>
      <deadlineTime>0</deadlineTime>
      <deadlineFieldName></deadlineFieldName>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <selectColleague>1</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>true</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>3600</allowanceAuthorityTime>
      <frequenceAuthorityTime>3600</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>false</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>1600</positionX>
      <positionY>60</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId></periodId>
      <stateType>0</stateType>
      <bpmnType>80</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <noticeExpirationAuthorityTime>0</noticeExpirationAuthorityTime>
      <noticeExpirationRequisitionerTime>0</noticeExpirationRequisitionerTime>
      <noticeExpirationManagerTime>0</noticeExpirationManagerTime>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
      <executionType>0</executionType>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>103</sequence>
      </processStatePK>
      <stateName>Intermediário</stateName>
      <stateDescription>Intermediário</stateDescription>
      <instruction>Evento intermediário do processo</instruction>
      <deadlineTime>0</deadlineTime>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <engineAllocationConfiguration></engineAllocationConfiguration>
      <selectColleague>0</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>true</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>1</allowanceAuthorityTime>
      <frequenceAuthorityTime>1</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>true</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>false</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>1660</positionX>
      <positionY>284</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId></periodId>
      <stateType>0</stateType>
      <bpmnType>43</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
      <parentSequence>99</parentSequence>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>2</sequence>
      </processStatePK>
      <stateName>Validar Loja</stateName>
      <stateDescription>Validar Loja</stateDescription>
      <joint>false</joint>
      <initialState>false</initialState>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <automatic>true</automatic>
      <positionX>250</positionX>
      <positionY>47</positionY>
      <inhibitTransfer>false</inhibitTransfer>
      <stateType>1</stateType>
      <bpmnType>120</bpmnType>
      <signalId>0</signalId>
      <openInstances>0</openInstances>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>46</sequence>
      </processStatePK>
      <stateName>Validar produto</stateName>
      <stateDescription>Validar produto</stateDescription>
      <joint>false</joint>
      <initialState>false</initialState>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <automatic>true</automatic>
      <positionX>1420</positionX>
      <positionY>268</positionY>
      <inhibitTransfer>false</inhibitTransfer>
      <stateType>1</stateType>
      <bpmnType>120</bpmnType>
      <signalId>0</signalId>
      <openInstances>0</openInstances>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>107</sequence>
      </processStatePK>
      <stateName>Validar rota</stateName>
      <stateDescription>Validar rota</stateDescription>
      <joint>false</joint>
      <initialState>false</initialState>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <automatic>true</automatic>
      <positionX>520</positionX>
      <positionY>663</positionY>
      <inhibitTransfer>false</inhibitTransfer>
      <stateType>1</stateType>
      <bpmnType>120</bpmnType>
      <signalId>0</signalId>
      <openInstances>0</openInstances>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>39</sequence>
      </processStatePK>
      <stateName>Cancelado</stateName>
      <stateDescription>Cancelado</stateDescription>
      <instruction>Atividade final do processo</instruction>
      <deadlineTime>0</deadlineTime>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <engineAllocationConfiguration></engineAllocationConfiguration>
      <selectColleague>0</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>true</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>1</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>false</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>true</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>700</positionX>
      <positionY>310</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId></periodId>
      <stateType>6</stateType>
      <bpmnType>65</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>60</sequence>
      </processStatePK>
      <stateName>Fim com cancelamento de processo</stateName>
      <stateDescription>Fim com cancelamento de processo</stateDescription>
      <instruction>Atividade final do processo</instruction>
      <deadlineTime>0</deadlineTime>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <engineAllocationConfiguration></engineAllocationConfiguration>
      <selectColleague>0</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>true</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>1</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>false</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>false</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>1570</positionX>
      <positionY>699</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId></periodId>
      <stateType>6</stateType>
      <bpmnType>65</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>96</sequence>
      </processStatePK>
      <stateName>Fim</stateName>
      <stateDescription>Fim</stateDescription>
      <instruction>Atividade final do processo</instruction>
      <deadlineTime>0</deadlineTime>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <engineAllocationConfiguration></engineAllocationConfiguration>
      <selectColleague>0</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>true</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>1</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>false</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>false</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>770</positionX>
      <positionY>510</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId></periodId>
      <stateType>6</stateType>
      <bpmnType>60</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
    </ProcessState>
    <ProcessState>
      <processStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>101</sequence>
      </processStatePK>
      <stateName>Fim</stateName>
      <stateDescription>Fim</stateDescription>
      <instruction>Atividade final do processo</instruction>
      <deadlineTime>0</deadlineTime>
      <joint>false</joint>
      <agreementPercentage>0</agreementPercentage>
      <engineAllocationId></engineAllocationId>
      <engineAllocationConfiguration></engineAllocationConfiguration>
      <selectColleague>0</selectColleague>
      <initialState>false</initialState>
      <notifyAuthorityDelay>true</notifyAuthorityDelay>
      <notifyRequisitionerDelay>false</notifyRequisitionerDelay>
      <allowanceAuthorityTime>0</allowanceAuthorityTime>
      <frequenceAuthorityTime>1</frequenceAuthorityTime>
      <allowanceRequisitionerTime>0</allowanceRequisitionerTime>
      <frequenceRequisitionerTime>0</frequenceRequisitionerTime>
      <transferAttachments>false</transferAttachments>
      <subProcessId></subProcessId>
      <formFolder>0</formFolder>
      <notifyAuthorityFollowUp>false</notifyAuthorityFollowUp>
      <notifyRequisitionerFollowUp>false</notifyRequisitionerFollowUp>
      <automatic>false</automatic>
      <positionX>1777</positionX>
      <positionY>300</positionY>
      <forecastedEffortType>0</forecastedEffortType>
      <forecastedEffort>0</forecastedEffort>
      <notifyManagerFollowUp>false</notifyManagerFollowUp>
      <notifyManagerDelay>false</notifyManagerDelay>
      <allowanceManagerTime>0</allowanceManagerTime>
      <frequenceManagerTime>0</frequenceManagerTime>
      <inhibitTransfer>false</inhibitTransfer>
      <periodId></periodId>
      <stateType>6</stateType>
      <bpmnType>60</bpmnType>
      <signalId>0</signalId>
      <counterSign>false</counterSign>
      <openInstances>0</openInstances>
      <destinationStates/>
      <digitalSignature>false</digitalSignature>
    </ProcessState>
  </list>
  <list>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>1</expressionOrder>
        <version>50</version>
        <sequence>2</sequence>
      </conditionProcessStatePK>
      <condition>hAPI.getCardValue(&quot;gestor_cce&quot;) != &quot;&quot;</condition>
      <destinationSequenceId>4</destinationSequenceId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;FormField&gt;gestor_cce&lt;/FormField&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <engineAllocationId>Campo Formulário</engineAllocationId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>2</expressionOrder>
        <version>50</version>
        <sequence>2</sequence>
      </conditionProcessStatePK>
      <condition>true</condition>
      <destinationSequenceId>6</destinationSequenceId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;User&gt;logistica&lt;/User&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <engineAllocationId>Usuário</engineAllocationId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>1</expressionOrder>
        <version>50</version>
        <sequence>46</sequence>
      </conditionProcessStatePK>
      <condition>hAPI.getCardValue(&quot;validacaoItens&quot;) == &quot;entregue&quot; &amp;&amp; hAPI.getCardValue(&quot;dataEntradaNfeConsulta&quot;) != &quot;&quot;</condition>
      <destinationSequenceId>99</destinationSequenceId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>2</expressionOrder>
        <version>50</version>
        <sequence>46</sequence>
      </conditionProcessStatePK>
      <condition>true</condition>
      <destinationSequenceId>24</destinationSequenceId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>1</expressionOrder>
        <version>50</version>
        <sequence>107</sequence>
      </conditionProcessStatePK>
      <condition>hAPI.getCardValue(&quot;ufOrigem&quot;) == &quot;AL&quot;</condition>
      <destinationSequenceId>31</destinationSequenceId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;Group&gt;motoristaAL&lt;/Group&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <engineAllocationId>Pool Grupo</engineAllocationId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>2</expressionOrder>
        <version>50</version>
        <sequence>107</sequence>
      </conditionProcessStatePK>
      <condition>hAPI.getCardValue(&quot;ufOrigem&quot;) == &quot;BA&quot;</condition>
      <destinationSequenceId>31</destinationSequenceId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;Group&gt;motoristaBA&lt;/Group&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <engineAllocationId>Pool Grupo</engineAllocationId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>3</expressionOrder>
        <version>50</version>
        <sequence>107</sequence>
      </conditionProcessStatePK>
      <condition>hAPI.getCardValue(&quot;ufOrigem&quot;) == &quot;SE&quot;</condition>
      <destinationSequenceId>31</destinationSequenceId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;Group&gt;motoristaSE&lt;/Group&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <engineAllocationId>Pool Grupo</engineAllocationId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>4</expressionOrder>
        <version>50</version>
        <sequence>107</sequence>
      </conditionProcessStatePK>
      <condition>hAPI.getCardValue(&quot;ufOrigem&quot;) == &quot;&quot;</condition>
      <destinationSequenceId>31</destinationSequenceId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;Group&gt;CD&lt;/Group&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <engineAllocationId>Pool Grupo</engineAllocationId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>5</expressionOrder>
        <version>50</version>
        <sequence>107</sequence>
      </conditionProcessStatePK>
      <condition>hAPI.getCardValue(&quot;ufOrigem&quot;) == &quot;VDC&quot;</condition>
      <destinationSequenceId>31</destinationSequenceId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;Group&gt;motoristaBA&lt;/Group&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <engineAllocationId>Pool Grupo</engineAllocationId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
    <ConditionProcessState>
      <conditionProcessStatePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <expressionOrder>6</expressionOrder>
        <version>50</version>
        <sequence>107</sequence>
      </conditionProcessStatePK>
      <condition>hAPI.getCardValue(&quot;ufOrigem&quot;) == &quot;SE&quot;</condition>
      <destinationSequenceId>31</destinationSequenceId>
      <engineAllocationConfiguration>&lt;AssignmentController&gt;&lt;Group&gt;motoristaSE&lt;/Group&gt;&lt;/AssignmentController&gt;</engineAllocationConfiguration>
      <engineAllocationId>Pool Grupo</engineAllocationId>
      <conditionType>0</conditionType>
    </ConditionProcessState>
  </list>
  <list>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>3</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>1</initialStateSequence>
      <finalStateSequence>2</finalStateSequence>
      <returnLabel></returnLabel>
      <name></name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>5</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>2</initialStateSequence>
      <finalStateSequence>4</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Gestor Identificado</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
      <movementTitle></movementTitle>
      <movementDescription></movementDescription>
      <movementAccessLinkDescription></movementAccessLinkDescription>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>7</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>2</initialStateSequence>
      <finalStateSequence>6</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Loja sem Gestor</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>26</linkSequence>
      </processLinkPK>
      <actionLabel>Ajuste realizado</actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>24</initialStateSequence>
      <finalStateSequence>18</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Ajuste de transferência</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>41</linkSequence>
      </processLinkPK>
      <actionLabel>Aprovado e emitir NFE</actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>4</initialStateSequence>
      <finalStateSequence>6</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Aprovar</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>47</linkSequence>
      </processLinkPK>
      <actionLabel>Confirmar recebimento</actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>18</initialStateSequence>
      <finalStateSequence>46</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Confirmar recebimento</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>48</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>46</initialStateSequence>
      <finalStateSequence>24</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Reprovar</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>53</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>4</initialStateSequence>
      <finalStateSequence>39</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Reprovar</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>61</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>57</initialStateSequence>
      <finalStateSequence>60</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Cancelar</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>85</linkSequence>
      </processLinkPK>
      <actionLabel>Transferência entregue</actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>57</initialStateSequence>
      <finalStateSequence>18</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Validar produtos recebidos</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>97</linkSequence>
      </processLinkPK>
      <actionLabel>Cancelar Transferência</actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>6</initialStateSequence>
      <finalStateSequence>96</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Finalizar</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>98</linkSequence>
      </processLinkPK>
      <actionLabel>Pedido coletado</actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>31</initialStateSequence>
      <finalStateSequence>57</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Entregar produto</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>100</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>46</initialStateSequence>
      <finalStateSequence>99</finalStateSequence>
      <returnLabel></returnLabel>
      <name></name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>102</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>99</initialStateSequence>
      <finalStateSequence>101</finalStateSequence>
      <returnLabel></returnLabel>
      <name></name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>105</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>103</initialStateSequence>
      <finalStateSequence>104</finalStateSequence>
      <returnLabel></returnLabel>
      <name></name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>106</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>104</initialStateSequence>
      <finalStateSequence>99</finalStateSequence>
      <returnLabel></returnLabel>
      <name></name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>108</linkSequence>
      </processLinkPK>
      <actionLabel>Enviar para coleta</actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>6</initialStateSequence>
      <finalStateSequence>107</finalStateSequence>
      <returnLabel></returnLabel>
      <name>Enviar para rota</name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
    <ProcessLink>
      <processLinkPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <linkSequence>109</linkSequence>
      </processLinkPK>
      <actionLabel></actionLabel>
      <returnPermited>false</returnPermited>
      <initialStateSequence>107</initialStateSequence>
      <finalStateSequence>31</finalStateSequence>
      <returnLabel></returnLabel>
      <name></name>
      <automaticLink>false</automaticLink>
      <defaultLink>false</defaultLink>
      <type>0</type>
    </ProcessLink>
  </list>
  <list/>
  <list>
    <WorkflowProcessEvent>
      <workflowProcessEventPK>
        <companyId>1</companyId>
        <eventId>beforeTaskSave</eventId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
      </workflowProcessEventPK>
      <eventDescription>function beforeTaskSave(colleagueId, nextSequenceId, userList) {
    try {
        var currentState = parseInt(getValue(&quot;WKNumState&quot;), 10);
        var completeTask = String(getValue(&quot;WKCompletTask&quot;) || &quot;false&quot;);
        var nextState = parseInt(String(nextSequenceId || &quot;0&quot;), 10);

        if (completeTask !== &quot;true&quot;) return;

        if (currentState === 6) {
            // Fluxo de cancelamento saindo da atividade 6 nao deve disparar template de nota emitida.
            if (nextState === 97) return;
            enviarNotificacaoNotaEmitida();
            return;
        }

        if (currentState === 31) {
            enviarNotificacaoColetaRealizada();
            return;
        }

        if (currentState === 57) {
            // 61 = cancelamento no diagrama.
            if (nextState === 61) return;
            enviarNotificacaoEntregaRealizada();
        }
    } catch (e) {
        log.error(&quot;[Transferencia.beforeTaskSave] Erro no beforeTaskSave: &quot; + e);
    }
}

function enviarNotificacaoNotaEmitida() {
    var envio = montarContextoEnvio();
    if (!envio.ok) return;

    var params = buildCommonParams(envio.processNumber, envio.chaveNfe, envio.processLink);
    notifyTemplate(&quot;tpl_nota_emitida&quot;, envio.destinoEmail, envio.requesterId, params, envio.processNumber, envio.processLink);
}

function enviarNotificacaoColetaRealizada() {
    var envio = montarContextoEnvio();
    if (!envio.ok) return;

    var motoristaColetaNome = safeTrim(hAPI.getCardValue(&quot;motoristaColetaNome&quot;));
    var dataColeta = safeTrim(hAPI.getCardValue(&quot;dataColeta&quot;));
    var motoristaEntregaNome = safeTrim(hAPI.getCardValue(&quot;motoristaEntregaNome&quot;));
    var tipoMotoristaEntrega = safeTrim(hAPI.getCardValue(&quot;tipoMotoristaEntrega&quot;));

    if (motoristaEntregaNome === &quot;&quot; &amp;&amp; tipoMotoristaEntrega === &quot;mesmo&quot;) {
        motoristaEntregaNome = motoristaColetaNome;
    }

    var params = buildCommonParams(envio.processNumber, envio.chaveNfe, envio.processLink);
    params.put(&quot;motoristaColetaNome&quot;, motoristaColetaNome);
    params.put(&quot;dataColeta&quot;, dataColeta);
    params.put(&quot;motoristaEntregaNome&quot;, motoristaEntregaNome);

    notifyTemplate(&quot;tpl_coleta_realizada&quot;, envio.destinoEmail, envio.requesterId, params, envio.processNumber, envio.processLink);
}

function enviarNotificacaoEntregaRealizada() {
    var envio = montarContextoEnvio();
    if (!envio.ok) return;

    var motoristaEntregaNome = safeTrim(hAPI.getCardValue(&quot;motoristaEntregaNome&quot;));
    var dataEntrega = safeTrim(hAPI.getCardValue(&quot;dataEntrega&quot;));
    var nomerecebedor = safeTrim(hAPI.getCardValue(&quot;nomerecebedor&quot;));

    var params = buildCommonParams(envio.processNumber, envio.chaveNfe, envio.processLink);
    params.put(&quot;motoristaEntregaNome&quot;, motoristaEntregaNome);
    params.put(&quot;dataEntrega&quot;, dataEntrega);
    params.put(&quot;nomerecebedor&quot;, nomerecebedor);

    notifyTemplate(&quot;tpl_entrega_realizada&quot;, envio.destinoEmail, envio.requesterId, params, envio.processNumber, envio.processLink);
}

function montarContextoEnvio() {
    var requesterId = safeTrim(hAPI.getCardValue(&quot;requesterId&quot;));
    var requesterMail = safeTrim(hAPI.getCardValue(&quot;requesterMail&quot;));

    if (requesterId === &quot;&quot; &amp;&amp; requesterMail !== &quot;&quot;) {
        requesterId = findColleagueIdByMail(requesterMail);
    }

    // Prioriza email explicito salvo no formulario; fallback para email do colleague.
    var destinoEmail = requesterMail;
    if (!isValidEmail(destinoEmail)) {
        destinoEmail = resolveEmailByColleagueId(requesterId);
    }

    if (!isValidEmail(destinoEmail)) {
        log.warn(&quot;[Transferencia.beforeTaskSave] Email do solicitante invalido. requesterId=&quot; + requesterId + &quot;, requesterMail=[&quot; + requesterMail + &quot;], destinoEmail=[&quot; + destinoEmail + &quot;]&quot;);
        return { ok: false };
    }

    var processNumber = safeTrim(getValue(&quot;WKNumProces&quot;));
    var chaveNfe = onlyDigits(hAPI.getCardValue(&quot;chaveNfe&quot;));
    if (chaveNfe === &quot;&quot;) chaveNfe = safeTrim(hAPI.getCardValue(&quot;chaveNfe&quot;));
    var processLink = buildProcessLink(processNumber);

    return {
        ok: true,
        requesterId: requesterId,
        destinoEmail: destinoEmail,
        processNumber: processNumber,
        chaveNfe: chaveNfe,
        processLink: processLink
    };
}

function buildCommonParams(processNumber, chaveNfe, processLink) {
    var params = new java.util.HashMap();
    params.put(&quot;WKNumProces&quot;, processNumber);
    params.put(&quot;chaveNfe&quot;, chaveNfe);
    params.put(&quot;linkSolicitacao&quot;, processLink);
    params.put(&quot;link&quot;, processLink);
    return params;
}

function notifyTemplate(templateCode, destinoEmail, requesterId, params, processNumber, processLink) {
    var NOTIFIER_SENDER_USER = &quot;admin&quot;;
    var recipients = new java.util.ArrayList();
    recipients.add(destinoEmail);

    notifier.notify(NOTIFIER_SENDER_USER, templateCode, params, recipients, &quot;text/html&quot;);
    log.info(&quot;[Transferencia.beforeTaskSave] &quot; + templateCode + &quot; enviado. processo=&quot; + processNumber + &quot;, destino=&quot; + destinoEmail + &quot;, requesterId=&quot; + requesterId + &quot;, link=[&quot; + processLink + &quot;]&quot;);
}

function buildProcessLink(processNumber) {
    var BASE_URL_FALLBACK = &quot;https://comerciode188006.fluig.cloudtotvs.com.br&quot;;
    var baseUrl = safeTrim(getValue(&quot;WKServerURL&quot;));
    var companyId = safeTrim(getValue(&quot;WKCompany&quot;));
    if (baseUrl === &quot;&quot;) baseUrl = BASE_URL_FALLBACK;
    if (baseUrl.indexOf(&quot;http://&quot;) !== 0 &amp;&amp; baseUrl.indexOf(&quot;https://&quot;) !== 0) {
        baseUrl = &quot;https://&quot; + baseUrl;
    }
    if (baseUrl.charAt(baseUrl.length - 1) === &quot;/&quot;) baseUrl = baseUrl.substring(0, baseUrl.length - 1);
    if (companyId === &quot;&quot;) companyId = &quot;1&quot;;
    if (baseUrl === &quot;&quot; || safeTrim(processNumber) === &quot;&quot;) return &quot;&quot;;
    return baseUrl + &quot;/portal/p/&quot; + companyId + &quot;/pageworkflowview?app_ecm_workflowview_detailsProcessInstanceID=&quot; + processNumber;
}

function findColleagueIdByMail(mail) {
    var email = safeTrim(mail);
    if (email === &quot;&quot;) return &quot;&quot;;

    try {
        var cMail = DatasetFactory.createConstraint(&quot;mail&quot;, email, email, ConstraintType.MUST);
        var dsColleague = DatasetFactory.getDataset(&quot;colleague&quot;, null, [cMail], null);
        if (!dsColleague || dsColleague.rowsCount &lt; 1) return &quot;&quot;;

        return safeTrim(
            dsColleague.getValue(0, &quot;colleaguePK.colleagueId&quot;) ||
            dsColleague.getValue(0, &quot;colleagueId&quot;) ||
            dsColleague.getValue(0, &quot;login&quot;)
        );
    } catch (e) {
        log.warn(&quot;[Transferencia.beforeTaskSave] Falha ao buscar solicitante por mail: &quot; + e);
        return &quot;&quot;;
    }
}

function resolveEmailByColleagueId(colleagueId) {
    var id = safeTrim(colleagueId);
    if (id === &quot;&quot;) return &quot;&quot;;

    try {
        var cActive = DatasetFactory.createConstraint(&quot;active&quot;, &quot;true&quot;, &quot;true&quot;, ConstraintType.MUST);

        var cId = DatasetFactory.createConstraint(&quot;colleaguePK.colleagueId&quot;, id, id, ConstraintType.MUST);
        var byId = DatasetFactory.getDataset(&quot;colleague&quot;, null, [cId, cActive], null);
        if (byId &amp;&amp; byId.rowsCount &gt; 0) {
            return safeTrim(byId.getValue(0, &quot;mail&quot;));
        }

        var cLogin = DatasetFactory.createConstraint(&quot;login&quot;, id, id, ConstraintType.MUST);
        var byLogin = DatasetFactory.getDataset(&quot;colleague&quot;, null, [cLogin, cActive], null);
        if (byLogin &amp;&amp; byLogin.rowsCount &gt; 0) {
            return safeTrim(byLogin.getValue(0, &quot;mail&quot;));
        }
    } catch (e) {
        log.warn(&quot;[Transferencia.beforeTaskSave] Falha ao buscar email do solicitante por colleagueId: &quot; + e);
    }

    return &quot;&quot;;
}

function isValidEmail(email) {
    var v = safeTrim(email);
    if (v === &quot;&quot;) return false;
    if (/\s/.test(v)) return false;

    var at = v.indexOf(&quot;@&quot;);
    if (at &lt;= 0 || at !== v.lastIndexOf(&quot;@&quot;)) return false;

    var dot = v.lastIndexOf(&quot;.&quot;);
    return dot &gt; at + 1 &amp;&amp; dot &lt; (v.length - 1);
}

function safeTrim(value) {
    return String(value == null ? &quot;&quot; : value).trim();
}

function onlyDigits(value) {
    return String(value == null ? &quot;&quot; : value).replace(/\D/g, &quot;&quot;);
}
</eventDescription>
    </WorkflowProcessEvent>
    <WorkflowProcessEvent>
      <workflowProcessEventPK>
        <companyId>1</companyId>
        <eventId>onNotify</eventId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
      </workflowProcessEventPK>
      <eventDescription>function onNotify(subject, receivers, template, params) {&#xd;
&#xd;
    log.info(&quot;===== onNotify GLOBAL ===== Template: &quot; + template);&#xd;
&#xd;
    var validos = new java.util.ArrayList();&#xd;
&#xd;
    for (var i = 0; i &lt; receivers.size(); i++) {&#xd;
&#xd;
        var email = receivers.get(i);&#xd;
&#xd;
        log.info(&quot;Receiver original: [&quot; + email + &quot;]&quot;);&#xd;
&#xd;
        if (email &amp;&amp; email.indexOf(&quot;@&quot;) &gt; 0 &amp;&amp; email.indexOf(&quot;.&quot;) &gt; 0) {&#xd;
            validos.add(email);&#xd;
        } else {&#xd;
            log.warn(&quot;REMOVIDO EMAIL INVALIDO: [&quot; + email + &quot;] TEMPLATE: &quot; + template);&#xd;
        }&#xd;
    }&#xd;
&#xd;
    receivers.clear();&#xd;
&#xd;
    for (var j = 0; j &lt; validos.size(); j++) {&#xd;
        receivers.add(validos.get(j));&#xd;
    }&#xd;
&#xd;
    log.info(&quot;TOTAL FINAL RECEIVERS: &quot; + receivers.size());&#xd;
}</eventDescription>
    </WorkflowProcessEvent>
    <WorkflowProcessEvent>
      <workflowProcessEventPK>
        <companyId>1</companyId>
        <eventId>servicetask99</eventId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
      </workflowProcessEventPK>
      <eventDescription>function servicetask99(attempt, message) {
    try {
        var validacaoItens = safeTrim(hAPI.getCardValue(&quot;validacaoItens&quot;));

        // Só precisa consultar entrada da NFe quando o recebimento foi validado como entregue.
        if (validacaoItens !== &quot;entregue&quot;) return;

        var dataEntrada = safeTrim(hAPI.getCardValue(&quot;dataEntradaNfeConsulta&quot;));
        if (dataEntrada !== &quot;&quot;) return;

        var chaveNfe = onlyDigits(hAPI.getCardValue(&quot;chaveNfe&quot;));
        if (chaveNfe === &quot;&quot;) {
            log.warn(&quot;[servicetask99] Chave NFe vazia. Nao foi possivel consultar entrada.&quot;);
            return;
        }

        var cKey = DatasetFactory.createConstraint(&quot;key&quot;, chaveNfe, chaveNfe, ConstraintType.MUST);
        var dsNfe = DatasetFactory.getDataset(&quot;ds_fiscal_invoice_by_keys&quot;, null, [cKey], null);

        if (!dsNfe || dsNfe.rowsCount &lt; 1) {
            log.warn(&quot;[servicetask99] Dataset sem retorno para chave: &quot; + chaveNfe);
            return;
        }

        var dsSuccess = safeTrim(dsNfe.getValue(0, &quot;success&quot;)).toLowerCase() === &quot;true&quot;;
        var dsUpdatedAt = safeTrim(dsNfe.getValue(0, &quot;updatedAt&quot;));

        if (dsSuccess &amp;&amp; dsUpdatedAt !== &quot;&quot;) {
            hAPI.setCardValue(&quot;dataEntradaNfeConsulta&quot;, dsUpdatedAt);
            log.info(&quot;[servicetask99] Data de entrada atualizada automaticamente: &quot; + dsUpdatedAt);
            return;
        }

        var dsMessage = safeTrim(dsNfe.getValue(0, &quot;message&quot;));
        log.warn(&quot;[servicetask99] Consulta executada sem data de entrada. message=&quot; + dsMessage);
    } catch (e) {
        log.error(&quot;[servicetask99] Erro na consulta automatica da NFe: &quot; + e);
        throw e;
    }
}

function safeTrim(value) {
    return String(value == null ? &quot;&quot; : value).trim();
}

function onlyDigits(value) {
    return String(value == null ? &quot;&quot; : value).replace(/\D/g, &quot;&quot;);
}
</eventDescription>
    </WorkflowProcessEvent>
  </list>
  <list/>
  <list>
    <SwimLane>
      <color>FFFFFF</color>
      <height>794</height>
      <width>1861</width>
      <positionX>20</positionX>
      <positionY>20</positionY>
      <stateName>Solicitação de Transferência</stateName>
      <type>1</type>
      <parentSequence>0</parentSequence>
      <swimLanePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>1</sequence>
      </swimLanePK>
    </SwimLane>
    <SwimLane>
      <color>82b0b7</color>
      <height>198</height>
      <width>1831</width>
      <positionX>50</positionX>
      <positionY>218</positionY>
      <stateName>Gerente de loja</stateName>
      <type>2</type>
      <parentSequence>1</parentSequence>
      <swimLanePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>2</sequence>
      </swimLanePK>
    </SwimLane>
    <SwimLane>
      <color>d0daae</color>
      <height>198</height>
      <width>1831</width>
      <positionX>50</positionX>
      <positionY>416</positionY>
      <stateName>Logistica</stateName>
      <type>2</type>
      <parentSequence>1</parentSequence>
      <swimLanePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>3</sequence>
      </swimLanePK>
    </SwimLane>
    <SwimLane>
      <color>d6e0d0</color>
      <height>198</height>
      <width>1831</width>
      <positionX>50</positionX>
      <positionY>20</positionY>
      <stateName>Analista de suprimentos</stateName>
      <type>2</type>
      <parentSequence>1</parentSequence>
      <swimLanePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>4</sequence>
      </swimLanePK>
    </SwimLane>
    <SwimLane>
      <color>adc9ac</color>
      <height>200</height>
      <width>1831</width>
      <positionX>50</positionX>
      <positionY>614</positionY>
      <stateName>Motorista</stateName>
      <type>2</type>
      <parentSequence>1</parentSequence>
      <swimLanePK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>1</version>
        <sequence>5</sequence>
      </swimLanePK>
    </SwimLane>
  </list>
  <list/>
  <list/>
  <list>
    <ProcessLinkBend>
      <processLinkBendPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>50</version>
        <linkSequence>5</linkSequence>
        <bendSequence>1</bendSequence>
      </processLinkBendPK>
      <positionX>342</positionX>
      <positionY>100</positionY>
    </ProcessLinkBend>
    <ProcessLinkBend>
      <processLinkBendPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>50</version>
        <linkSequence>5</linkSequence>
        <bendSequence>2</bendSequence>
      </processLinkBendPK>
      <positionX>342</positionX>
      <positionY>326</positionY>
    </ProcessLinkBend>
    <ProcessLinkBend>
      <processLinkBendPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>50</version>
        <linkSequence>7</linkSequence>
        <bendSequence>1</bendSequence>
      </processLinkBendPK>
      <positionX>279</positionX>
      <positionY>527</positionY>
    </ProcessLinkBend>
    <ProcessLinkBend>
      <processLinkBendPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>50</version>
        <linkSequence>26</linkSequence>
        <bendSequence>1</bendSequence>
      </processLinkBendPK>
      <positionX>1223</positionX>
      <positionY>517</positionY>
    </ProcessLinkBend>
    <ProcessLinkBend>
      <processLinkBendPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>50</version>
        <linkSequence>61</linkSequence>
        <bendSequence>1</bendSequence>
      </processLinkBendPK>
      <positionX>1552</positionX>
      <positionY>717</positionY>
    </ProcessLinkBend>
    <ProcessLinkBend>
      <processLinkBendPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <version>50</version>
        <linkSequence>85</linkSequence>
        <bendSequence>1</bendSequence>
      </processLinkBendPK>
      <positionX>1149</positionX>
      <positionY>308</positionY>
    </ProcessLinkBend>
  </list>
  <list/>
  <list/>
  <list>
    <ProcessFormField>
      <processFormFieldPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <fieldId>centroCusto</fieldId>
      </processFormFieldPK>
      <fieldDescription>Filial Destino</fieldDescription>
      <slotId>1</slotId>
    </ProcessFormField>
    <ProcessFormField>
      <processFormFieldPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <fieldId>dataAbertura</fieldId>
      </processFormFieldPK>
      <fieldDescription>Data de abertura</fieldDescription>
      <slotId>2</slotId>
    </ProcessFormField>
    <ProcessFormField>
      <processFormFieldPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <fieldId>dataEmissaoNfe</fieldId>
      </processFormFieldPK>
      <fieldDescription>dataEmissaoNfe</fieldDescription>
      <slotId>3</slotId>
    </ProcessFormField>
    <ProcessFormField>
      <processFormFieldPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <fieldId>estabelecimento</fieldId>
      </processFormFieldPK>
      <fieldDescription>Filial Emitente</fieldDescription>
      <slotId>4</slotId>
    </ProcessFormField>
    <ProcessFormField>
      <processFormFieldPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <fieldId>justificativa</fieldId>
      </processFormFieldPK>
      <fieldDescription>Justificativa</fieldDescription>
      <slotId>5</slotId>
    </ProcessFormField>
    <ProcessFormField>
      <processFormFieldPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <fieldId>motoristaColetaNome</fieldId>
      </processFormFieldPK>
      <fieldDescription>Motorista Coleta</fieldDescription>
      <slotId>6</slotId>
    </ProcessFormField>
    <ProcessFormField>
      <processFormFieldPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <fieldId>motoristaEntregaNome</fieldId>
      </processFormFieldPK>
      <fieldDescription>Motorista Entrega</fieldDescription>
      <slotId>7</slotId>
    </ProcessFormField>
    <ProcessFormField>
      <processFormFieldPK>
        <companyId>1</companyId>
        <processId>Transferência Ginseng</processId>
        <fieldId>requesterName</fieldId>
      </processFormFieldPK>
      <fieldDescription>requesterName</fieldDescription>
      <slotId>8</slotId>
    </ProcessFormField>
  </list>
  <list>
    <ProcessStateService>
      <companyId>1</companyId>
      <processId>Transferência Ginseng</processId>
      <version>1</version>
      <sequence>99</sequence>
      <attempts>10</attempts>
      <sucessFullMessage>Lançamento efetuado com sucesso no RGB</sucessFullMessage>
      <serviceName></serviceName>
      <frequency>1</frequency>
      <frequencyType>2</frequencyType>
    </ProcessStateService>
  </list>
  <list/>
  <list>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>4</stateSequence>
      <appKey>approval</appKey>
      <appField>title</appField>
      <description>Solicitação de compra</description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>4</stateSequence>
      <appKey>approval</appKey>
      <appField>description</appField>
      <description></description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>4</stateSequence>
      <appKey>approval</appKey>
      <appField>highlight</appField>
      <description>Centro de Custo - Aprovar solicitação?</description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>4</stateSequence>
      <appKey>approval</appKey>
      <appField>approve</appField>
      <description>6</description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>4</stateSequence>
      <appKey>approval</appKey>
      <appField>reject</appField>
      <description>39</description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>6</stateSequence>
      <appKey>approval</appKey>
      <appField>title</appField>
      <description>Solicitação de transferência</description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>6</stateSequence>
      <appKey>approval</appKey>
      <appField>description</appField>
      <description></description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>6</stateSequence>
      <appKey>approval</appKey>
      <appField>highlight</appField>
      <description>Transferência</description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>6</stateSequence>
      <appKey>approval</appKey>
      <appField>approve</appField>
      <description></description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>6</stateSequence>
      <appKey>approval</appKey>
      <appField>reject</appField>
      <description></description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>24</stateSequence>
      <appKey>approval</appKey>
      <appField>title</appField>
      <description></description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>24</stateSequence>
      <appKey>approval</appKey>
      <appField>description</appField>
      <description></description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>24</stateSequence>
      <appKey>approval</appKey>
      <appField>highlight</appField>
      <description></description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>24</stateSequence>
      <appKey>approval</appKey>
      <appField>approve</appField>
      <description></description>
    </ProcessAppConfiguration>
    <ProcessAppConfiguration>
      <id>0</id>
      <tenantId>0</tenantId>
      <processId>Transferência Ginseng</processId>
      <processVersion>50</processVersion>
      <stateSequence>24</stateSequence>
      <appKey>approval</appKey>
      <appField>reject</appField>
      <description></description>
    </ProcessAppConfiguration>
  </list>
  <list/>
  <list/>
</list>