TriggerCourtProcess

Section contains description of Process " TriggerCourtProcess.process " .

Folder description:

Folder Description
/PantherBW/ProcessDefinitions/BusinessLogic The folder that contain the main procedures....

Process description:

The process which triggers procedures in the iProcess

Process definition:

Full process path: PantherBW/ProcessDefinitions/BusinessLogic/TriggerCourtProcess.process

Diagram:

Start End Panther2 - begin the process Panther1 - send email Assign Panther1 - restart process From: Start To: Panther2 - begin the process From: Panther2 - begin the process To: End From: Start To: Panther1 - send email From: Panther1 - send email To: End From: Assign To: End From: Start To: End From: Panther1 - restart process To: End From: Start To: Panther1 - restart process From: Start To: Assign

Process starter activity:

Name: Start

Description: The beginning of TriggerCourt process

Input Parameters:

Process end activity:

Name: End

Output Parameters:

Return bindings:
  • Mapping table

    Target Source
    /[WHEN]<$Variable0/Results/ResultCode=0>/TriggerCourtProcessResponse/ResultCode 0
    /[OTHERWISE]/TriggerCourtProcessResponse/ResultCode -1
    /[OTHERWISE]/TriggerCourtProcessResponse/ResultMessage "Error."
  • Mapping tree

    Mapping
    [CHOOSE] 
     [WHEN] < $Variable0/Results/ResultCode=0 >
      TriggerCourtProcessResponse
       ResultCode = 0
     [OTHERWISE] 
      TriggerCourtProcessResponse
       ResultCode = -1
       ResultMessage = "Error."
  • Source code

    Mapping
            <xsl:choose xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="www.tibco.com/plugin/staffware/iProcessStartCaseActivityInput" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:pfx="http://www.tibco.com/schemas/pantherbw/PantherBW/ProcessDefinitions/Schema/Schema.xsd">
                <xsl:when test="$Variable0/Results/ResultCode=0">
                    <pfx:TriggerCourtProcessResponse>
                        <pfx:ResultCode>
                            <xsl:value-of select="0"/>
                        </pfx:ResultCode>
                    </pfx:TriggerCourtProcessResponse>
                </xsl:when>
                <xsl:otherwise>
                    <pfx:TriggerCourtProcessResponse>
                        <pfx:ResultCode>
                            <xsl:value-of select="-1"/>
                        </pfx:ResultCode>
                        <pfx:ResultMessage>
                            <xsl:value-of select="&#34;Error.&#34;"/>
                        </pfx:ResultMessage>
                    </pfx:TriggerCourtProcessResponse>
                </xsl:otherwise>
            </xsl:choose>
        

Process variables:

Schema: Variable0

  • + Results (Complex Type, required )
    • - ResultCode(xsd:int,required)
    • - ResultMsg(xsd:string,optional)

Activities:

Name: Assign

  • Type: com.tibco.pe.core.AssignActivity
  • Resource Type: ae.activities.assignActivity
  • Description: It assigns the error value and error message.
  • Configuration:
    • variableName = Variable0
  • Input bindings:
    • Mapping table

      Target Source
      /Results/ResultCode -1
      /Results/ResultMsg "Error"
    • Mapping tree

      Mapping
      Results
       ResultCode = -1
       ResultMsg = "Error"
    • Source code

      Mapping
                  <Results xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="www.tibco.com/plugin/staffware/iProcessStartCaseActivityInput" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:pfx="http://www.tibco.com/schemas/pantherbw/PantherBW/ProcessDefinitions/Schema/Schema.xsd">
                      <ResultCode>
                          <xsl:value-of select="-1"/>
                      </ResultCode>
                      <ResultMsg>
                          <xsl:value-of select="&#34;Error&#34;"/>
                      </ResultMsg>
                  </Results>
              

Name: Panther1 - restart process

  • Type: com.tibco.plugin.staffware.iProcessStartCaseActivity
  • Resource Type: ae.activities.iProcessStartCase
  • Description: Panther1 - restart process
  • Configuration:
    • StaffwareStepType = 2
    • StaffwareProcedureStatus = 1
    • UseCasePrecedenceRule = true
    • StaffwareProcedureStartMode = 1
    • ShowStaffwareProcedureSystemFields = false
    • ValidateInputValueLength = true
    • OverrideTransactionBehavior = false
    • StaticConfiguration = false
    • StaffwareProcedureName = PANTHER1 (0.6)
    • StaffwareProcedureInput = N_EMAILS^82^?^10^0,T_DATE^65^?^20^0,T_ERRORMSG^70^?^0^0,T_EXPDATE^65^?^20^0,T_FIRSTMAIL^65^?^20^0,T_WAIT^65^?^20^0,
    • StaffwareNodeInfo = 0^/^:^[3.1.1]^
    • StaffwareStepName = RT00
    • StaffwareStepInput =
    • StaffwareConnection = /SharedResources/Connection/iProcess Connection.sharediprocesscon
  • Input bindings:
    • Mapping table

      Target Source
      /iProcessStartCaseActivityInput/CaseDescription-24 $Start/pfx:TriggerCourtProcessRequest/pfx:SW_CASENUM
    • Mapping tree

      Mapping
      iProcessStartCaseActivityInput
       CaseDescription-24 = $Start/pfx:TriggerCourtProcessRequest/pfx:SW_CASENUM
    • Source code

      Mapping
                  <ns:iProcessStartCaseActivityInput xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="www.tibco.com/plugin/staffware/iProcessStartCaseActivityInput" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:pfx="http://www.tibco.com/schemas/pantherbw/PantherBW/ProcessDefinitions/Schema/Schema.xsd">
                      <CaseDescription-24>
                          <xsl:value-of select="$Start/pfx:TriggerCourtProcessRequest/pfx:SW_CASENUM"/>
                      </CaseDescription-24>
                  </ns:iProcessStartCaseActivityInput>
              

Name: Panther1 - send email

  • Type: com.tibco.plugin.staffware.iProcessStartCaseActivity
  • Resource Type: ae.activities.iProcessStartCase
  • Description: Panther1 - send email
  • Configuration:
    • StaffwareStepType = 0
    • StaffwareProcedureStatus = 1
    • UseCasePrecedenceRule = true
    • StaffwareProcedureStartMode = 1
    • ShowStaffwareProcedureSystemFields = false
    • ValidateInputValueLength = true
    • OverrideTransactionBehavior = false
    • StaticConfiguration = false
    • StaffwareProcedureName = PANTHER1 (0.6)
    • StaffwareProcedureInput = N_EMAILS^82^?^10^0,T_DATE^65^?^20^0,T_ERRORMSG^70^?^0^0,T_EXPDATE^65^?^20^0,T_FIRSTMAIL^65^?^20^0,T_WAIT^65^?^20^0,
    • StaffwareNodeInfo = 0^/^:^[3.1.1]^
    • StaffwareStepName = RT03
    • StaffwareStepInput =
    • StaffwareConnection = /SharedResources/Connection/iProcess Connection.sharediprocesscon
  • Input bindings:
    • Mapping table

      Target Source
      /iProcessStartCaseActivityInput/CaseDescription-24 $Start/pfx:TriggerCourtProcessRequest/pfx:SW_CASENUM
    • Mapping tree

      Mapping
      iProcessStartCaseActivityInput
       CaseDescription-24 = $Start/pfx:TriggerCourtProcessRequest/pfx:SW_CASENUM
    • Source code

      Mapping
                  <ns:iProcessStartCaseActivityInput xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="www.tibco.com/plugin/staffware/iProcessStartCaseActivityInput" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:pfx="http://www.tibco.com/schemas/pantherbw/PantherBW/ProcessDefinitions/Schema/Schema.xsd">
                      <CaseDescription-24>
                          <xsl:value-of select="$Start/pfx:TriggerCourtProcessRequest/pfx:SW_CASENUM"/>
                      </CaseDescription-24>
                  </ns:iProcessStartCaseActivityInput>
              

Name: Panther2 - begin the process

  • Type: com.tibco.plugin.staffware.iProcessStartCaseActivity
  • Resource Type: ae.activities.iProcessStartCase
  • Description: Panther2 - begin the process
  • Configuration:
    • StaffwareStepType = 2
    • StaffwareProcedureStatus = 1
    • UseCasePrecedenceRule = true
    • StaffwareProcedureStartMode = 1
    • ShowStaffwareProcedureSystemFields = false
    • ValidateInputValueLength = true
    • OverrideTransactionBehavior = false
    • StaticConfiguration = false
    • StaffwareProcedureName = PANTHER2 (0.1)
    • StaffwareProcedureInput =
    • StaffwareNodeInfo = 0^/^:^[3.1.1]^
    • StaffwareStepName = RT00
    • StaffwareStepInput =
    • StaffwareConnection = /SharedResources/Connection/iProcess Connection.sharediprocesscon
  • Input bindings:
    • Mapping table

      Target Source
      /iProcessStartCaseActivityInput/CaseDescription-24 $Start/pfx:TriggerCourtProcessRequest/pfx:SW_CASENUM
    • Mapping tree

      Mapping
      iProcessStartCaseActivityInput
       CaseDescription-24 = $Start/pfx:TriggerCourtProcessRequest/pfx:SW_CASENUM
    • Source code

      Mapping
                  <ns:iProcessStartCaseActivityInput xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns1="http://www.tibco.com/pe/EngineTypes" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="www.tibco.com/plugin/staffware/iProcessStartCaseActivityInput" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:pfx="http://www.tibco.com/schemas/pantherbw/PantherBW/ProcessDefinitions/Schema/Schema.xsd">
                      <CaseDescription-24>
                          <xsl:value-of select="$Start/pfx:TriggerCourtProcessRequest/pfx:SW_CASENUM"/>
                      </CaseDescription-24>
                  </ns:iProcessStartCaseActivityInput>
              

Transitions:

  • From: Assign -To: End
    • Label:
    • Condition: Success
    • Description:
  • From: Panther1 - restart process -To: End
    • Label:
    • Condition: Success
    • Description:
  • From: Panther1 - send email -To: End
    • Label:
    • Condition: Success
    • Description:
  • From: Panther2 - begin the process -To: End
    • Label:
    • Condition: Success
    • Description:
  • From: Start -To: Assign
    • Label: otherwise
    • Condition: Success with no matching condition
    • Description:
  • From: Start -To: End
    • Label: end process
    • Condition: $Start/pfx:TriggerCourtProcessRequest/pfx:message="QUIT"
    • Description: ends the process
  • From: Start -To: Panther1 - restart process
    • Label: restart
    • Condition: $Start/pfx:TriggerCourtProcessRequest/pfx:message="RESTART"
    • Description: restarts the whole process
  • From: Start -To: Panther1 - send email
    • Label: mail
    • Condition: $Start/pfx:TriggerCourtProcessRequest/pfx:message="MAIL"
    • Description: starts the procedure which sends email
  • From: Start -To: Panther2 - begin the process
    • Label: court
    • Condition: $Start/pfx:TriggerCourtProcessRequest/pfx:message="COURT"
    • Description: starts the court