<?xml version="1.0" encoding="UTF-8"?>
<Package Id="FIN_JOURNAL_VOUCHER" Name="FIN_JOURNAL_VOUCHER" xmlns="http://www.wfmc.org/2002/XPDL1.0" xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wfmc.org/2002/XPDL1.0 http://wfmc.org/standards/docs/TC-1025_schema_10_xpdl.xsd">
    <PackageHeader>
        <XPDLVersion>1.0</XPDLVersion>
        <Vendor>Together</Vendor>
        <Created>2012-12-04 15:07:39</Created>
    </PackageHeader>
    <RedefinableHeader PublicationStatus="UNDER_TEST"/>
    <ConformanceClass GraphConformance="NON_BLOCKED"/>
    <WorkflowProcesses>
        <WorkflowProcess AccessLevel="PUBLIC" Id="FIN_JOURNAL_VOUCHER" Name="FIN_JOURNAL_VOUCHER">
            <ProcessHeader DurationUnit="D">
                <Created>2012-12-04 15:10:07</Created>
            </ProcessHeader>
            <RedefinableHeader PublicationStatus="UNDER_TEST"/>
            <Participants>
                <Participant Id="ACT_EX" Name="ACT_EX">
                    <ParticipantType Type="ROLE"/>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="PRFMR_ROLE_CODE" Value="ACT_EX"/>
                        <ExtendedAttribute Name="PRFMR_ROLE_EXPR" Value="Detail1.emp_code:"/>
                        <ExtendedAttribute Name="PRFMR_ROLE_EXPR_TYPE" Value="String:"/>
                    </ExtendedAttributes>
                </Participant>
                <Participant Id="ACT_MGR" Name="ACT_MGR">
                    <ParticipantType Type="ROLE"/>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="PFMR_ROLE_CODE" Value="ACT_MGR"/>
                        <ExtendedAttribute Name="PRFMR_ROLE_EXPR" Value="Detail1.emp_code:"/>
                        <ExtendedAttribute Name="PRFMR_ROLE_EXPR_TYPE" Value="String:"/>
                    </ExtendedAttributes>
                </Participant>
            </Participants>
            <Applications>
                <Application Id="SignTrans" Name="SignTrans">
                    <FormalParameters>
                        <FormalParameter Id="PRC_ID" Index="1" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="PRFMR_ROLE_CODE" Index="2" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="PRFMR_CODE" Index="3" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="FORMAT_CODE" Index="4" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="XSL_FILE_NAME" Index="5" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="SIGN_FOR" Index="6" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="CTX_1" Index="7" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="CTX_2" Index="8" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="CTX_3" Index="9" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                    </FormalParameters>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="APPLN_TYPE" Value="JB"/>
                        <ExtendedAttribute Name="COMP_NAME" Value="ibase.wrkflw.utility.SignTrans"/>
                        <ExtendedAttribute Name="METHOD_NAME" Value="insertSignCtx"/>
                        <ExtendedAttribute Name="EXEC_MODE" Value="ASYNC"/>
                    </ExtendedAttributes>
                </Application>
                <Application Id="TranSave" Name="TranSave">
                    <FormalParameters>
                        <FormalParameter Id="OBJ_NAME" Index="1" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="REF_ID" Index="2" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="ENTITY_ID" Index="3" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="PRC_INST_ID" Index="4" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="TRANS_INFO" Index="5" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="PRFMR_CODE" Index="6" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                        <FormalParameter Id="NEW_REC" Index="7" Mode="IN">
                            <DataType>
                                <BasicType Type="STRING"/>
                            </DataType>
                        </FormalParameter>
                    </FormalParameters>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="APPLN_TYPE" Value="JB"/>
                        <ExtendedAttribute Name="COMP_NAME" Value="ibase.wrkflw.utility.TransSave"/>
                        <ExtendedAttribute Name="METHOD_NAME" Value="saveChangeInTrans"/>
                        <ExtendedAttribute Name="EXEC_MODE" Value="SYNC"/>
                    </ExtendedAttributes>
                </Application>
            </Applications>
            <Activities>
                <Activity Id="FIN_JOURNAL_VOUCHER" Name="CHECK STATUS">
                    <Implementation>
                        <No/>
                    </Implementation>
                    <Performer>ACT_EX</Performer>
                    <StartMode>
                        <Automatic/>
                    </StartMode>
                    <FinishMode>
                        <Automatic/>
                    </FinishMode>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="ParticipantID" Value="ACT_EX"/>
                        <ExtendedAttribute Name="XOffset" Value="150"/>
                        <ExtendedAttribute Name="YOffset" Value="50"/>
                    </ExtendedAttributes>
                </Activity>
                <Activity Id="ACT_EX_SIGN" Name="ACCT_EXEC_SIGN">
                    <Implementation>
                        <Tool Id="SignTrans" Type="APPLICATION">
                            <ActualParameters>
                                <ActualParameter>$PRC_ID</ActualParameter>
                                <ActualParameter>$PRFMR_ROLE_CODE</ActualParameter>
                                <ActualParameter>$PRFMR_CODE</ActualParameter>
                                <ActualParameter>ACTEXAPRVFINJOURVOUCH</ActualParameter>
                                <ActualParameter>FIN_JOURNAL_VOUCHER</ActualParameter>
                                <ActualParameter>FIN Journal Voucher for &lt;Detail1.tran_id&gt;</ActualParameter>
                                <ActualParameter>FIN Journal Voucher</ActualParameter>
                                <ActualParameter>&lt;Detail1.tran_date&gt;</ActualParameter>
                                <ActualParameter>&lt;Detail1.tran_id&gt;</ActualParameter>
                            </ActualParameters>
                        </Tool>
                    </Implementation>
                    <Performer>ACT_EX</Performer>
                    <StartMode>
                        <Automatic/>
                    </StartMode>
                    <FinishMode>
                        <Automatic/>
                    </FinishMode>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="ParticipantID" Value="ACT_EX"/>
                        <ExtendedAttribute Name="XOffset" Value="250"/>
                        <ExtendedAttribute Name="YOffset" Value="50"/>
                    </ExtendedAttributes>
                </Activity>
                <Activity Id="ACT_MGR_SIGN" Name="ACCT_MGR_SIGN">
                    <Implementation>
                        <Tool Id="SignTrans" Type="APPLICATION">
                            <ActualParameters>
                                <ActualParameter>$PRC_ID</ActualParameter>
                                <ActualParameter>$PRFMR_ROLE_CODE</ActualParameter>
                                <ActualParameter>$PRFMR_CODE</ActualParameter>
                                <ActualParameter>ACTMGRAPRVFINJOURVOUCH</ActualParameter>
                                <ActualParameter>FIN_JOURNAL_VOUCHER</ActualParameter>
                                <ActualParameter>FIN Journal Voucher for &lt;Detail1.tran_id&gt;</ActualParameter>
                                <ActualParameter>FIN Journal Voucher</ActualParameter>
                                <ActualParameter>&lt;Detail1.tran_date&gt;</ActualParameter>
                                <ActualParameter>&lt;Detail1.tran_id&gt;</ActualParameter>
                            </ActualParameters>
                        </Tool>
                    </Implementation>
                    <Performer>ACT_MGR</Performer>
                    <StartMode>
                        <Automatic/>
                    </StartMode>
                    <FinishMode>
                        <Automatic/>
                    </FinishMode>
                    <TransitionRestrictions>
                        <TransitionRestriction>
                            <Join Type="XOR"/>
                        </TransitionRestriction>
                    </TransitionRestrictions>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="ParticipantID" Value="ACT_MGR"/>
                        <ExtendedAttribute Name="XOffset" Value="390"/>
                        <ExtendedAttribute Name="YOffset" Value="20"/>
                    </ExtendedAttributes>
                </Activity>
                <Activity Id="ACT_EX_TRAN_SAVE" Name="ACCT_EXEC_TRAN_SAVE">
                    <Implementation>
                        <Tool Id="TranSave" Type="APPLICATION">
                            <ActualParameters>
                                <ActualParameter>journal</ActualParameter>
                                <ActualParameter>$REF_ID</ActualParameter>
                                <ActualParameter>$PRFMR_CODE</ActualParameter>
                                <ActualParameter>$PRC_ID</ActualParameter>
                                <ActualParameter>$XML_DATA_ALL</ActualParameter>
                                <ActualParameter>$PRFMR_CODE</ActualParameter>
                                <ActualParameter>E</ActualParameter>
                            </ActualParameters>
                        </Tool>
                    </Implementation>
                    <Performer>ACT_EX</Performer>
                    <StartMode>
                        <Automatic/>
                    </StartMode>
                    <FinishMode>
                        <Automatic/>
                    </FinishMode>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="ParticipantID" Value="ACT_EX"/>
                        <ExtendedAttribute Name="XOffset" Value="390"/>
                        <ExtendedAttribute Name="YOffset" Value="50"/>
                    </ExtendedAttributes>
                </Activity>
                <Activity Id="ACT_MGR_TRAN_SAVE" Name="ACCT_MGR_TRAN_SAVE">
                    <Implementation>
                        <Tool Id="TranSave" Type="APPLICATION">
                            <ActualParameters>
                                <ActualParameter>journal</ActualParameter>
                                <ActualParameter>$REF_ID</ActualParameter>
                                <ActualParameter>$PRFMR_CODE</ActualParameter>
                                <ActualParameter>$PRC_ID</ActualParameter>
                                <ActualParameter>$XML_DATA_ALL</ActualParameter>
                                <ActualParameter>$PRFMR_CODE</ActualParameter>
                                <ActualParameter>E</ActualParameter>
                            </ActualParameters>
                        </Tool>
                    </Implementation>
                    <Performer>ACT_MGR</Performer>
                    <StartMode>
                        <Automatic/>
                    </StartMode>
                    <FinishMode>
                        <Automatic/>
                    </FinishMode>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="ParticipantID" Value="ACT_MGR"/>
                        <ExtendedAttribute Name="XOffset" Value="550"/>
                        <ExtendedAttribute Name="YOffset" Value="20"/>
                    </ExtendedAttributes>
                </Activity>
                <Activity Id="CONFIRM" Name="CONFIRM">
                    <Implementation>
                        <No/>
                    </Implementation>
                    <Performer>ACT_MGR</Performer>
                    <StartMode>
                        <Automatic/>
                    </StartMode>
                    <FinishMode>
                        <Automatic/>
                    </FinishMode>
                    <TransitionRestrictions>
                        <TransitionRestriction>
                            <Join Type="XOR"/>
                        </TransitionRestriction>
                    </TransitionRestrictions>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="ParticipantID" Value="ACT_MGR"/>
                        <ExtendedAttribute Name="XOffset" Value="550"/>
                        <ExtendedAttribute Name="YOffset" Value="110"/>
                    </ExtendedAttributes>
                </Activity>
            </Activities>
            <Transitions>
                <Transition From="FIN_JOURNAL_VOUCHER" Id="FIN_CREDIT_NOTE_Tra2" To="ACT_EX_SIGN">
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="RoutingType" Value="NOROUTING"/>
                    </ExtendedAttributes>
                </Transition>
                <Transition From="ACT_EX_SIGN" Id="FIN_CREDIT_NOTE_Tra3" To="ACT_MGR_SIGN">
                    <Condition Type="CONDITION">$APP_RESULT=="S"</Condition>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="RoutingType" Value="NOROUTING"/>
                        <ExtendedAttribute Name="VAR_NAMES" Value="$APP_RESULT"/>
                    </ExtendedAttributes>
                </Transition>
                <Transition From="ACT_EX_TRAN_SAVE" Id="FIN_CREDIT_NOTE_Tra4" To="ACT_MGR_SIGN">
                    <Condition Type="CONDITION">$APP_STATUS=="1"</Condition>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="RoutingType" Value="NOROUTING"/>
                        <ExtendedAttribute Name="VAR_NAMES" Value="$APP_STATUS"/>
                    </ExtendedAttributes>
                </Transition>
                <Transition From="ACT_MGR_SIGN" Id="FIN_CREDIT_NOTE_Tra5" To="CONFIRM">
                    <Condition Type="CONDITION">$APP_RESULT=="S"</Condition>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="RoutingType" Value="NOROUTING"/>
                        <ExtendedAttribute Name="VAR_NAMES" Value="$APP_RESULT"/>
                    </ExtendedAttributes>
                </Transition>
                <Transition From="ACT_MGR_TRAN_SAVE" Id="FIN_CREDIT_NOTE_Tra6" To="CONFIRM">
                    <Condition Type="CONDITION">$APP_STATUS=="1"</Condition>
                    <ExtendedAttributes>
                        <ExtendedAttribute Name="RoutingType" Value="NOROUTING"/>
                        <ExtendedAttribute Name="VAR_NAMES" Value="$APP_STATUS"/>
                    </ExtendedAttributes>
                </Transition>
            </Transitions>
            <ExtendedAttributes>
                <ExtendedAttribute Name="StartOfWorkflow" Value="ACT_EX;FIN_JOURNAL_VOUCHER;70;50;NOROUTING"/>
                <ExtendedAttribute Name="EndOfWorkflow" Value="ACT_MGR;CONFIRM;670;110;NOROUTING"/>
                <ExtendedAttribute Name="ParticipantVisualOrder" Value="ACT_EX;ACT_MGR;"/>
            </ExtendedAttributes>
        </WorkflowProcess>
    </WorkflowProcesses>
    <ExtendedAttributes>
        <ExtendedAttribute Name="MadeBy" Value="JaWE"/>
        <ExtendedAttribute Name="Version" Value="1.4.2"/>
    </ExtendedAttributes>
</Package>
