uCosminexus Service Platform, Setup and Operation Guide
You can re-execute each process instance whose execution was cancelled due to failure, such as the shutdown of a machine on which the Cosminexus system is running, or a service module call error.
Also, you can re-execute multiple process instances in batch mode. To perform batch re-execution of the process instance execution logs, you can use commands only.
Furthermore, you can request a re-execution of the business process from the service requester to re-execute the business process.
for details on conditions in which you can re-execute process instance and re-executing business process using service requester, see "3.5 Re-executing a business process" in "BPM/ESB Service Platform Overview".
The procedure to re-execute process instances one by one using screens is as follows:
Table 6-1 Table condition wherein re-execution of process can be performed
| Activity type | Status of activity instance |
|---|---|
| Invoke service | Executing |
| Error occurred | |
| Standby | Executing |
| Scope | Executing (Standby) |
| Error occurred | |
| Completed (Standby) | |
| Response | Completed (Standby) |
Do not re-execute process instances running on the HCSC server. For re-executing the process instances, first check the error contents in the response and the message logs from the HCSC server, eliminate the cause of the errors, and then re-execute process instances.
The procedure to re-execute process instances one by one using commands is as follows:
cscpireexec -user <Login user ID> -pass <Login password> -csc <HCSC server name> {-processid <Process ID>|-processidfile < Process ID file name>}# {-processnamefile <Business process definition file name> | -processname < Business process definition name >#
|
cscpireexec -user <Login user ID> -pass <Login password> -csc HCSC -processidfile process_id.txt -processname Hello business process |
J2EEServer_010210084218_Hello business process_1237946140968_3843192274_138 |
For details on cscpireexec command "cscpireexec (Re-executing process instance) " in "Service Platform Reference Guide".
The procedure to re-execute process instances in a batch mode by specifying the business process definition name as follows:
cscpireexec -user < Login user ID > -pass < Login password > -csc <HCSC server name> {-processname <Business process definition name>|-processnamefile < Business process definition file name >}#
|
cscpireexec -user <Login user ID> -pass <Login password> -csc HCSC -processname Hello business process |
For details on cscpireexec command, see "cscpireexec (re-executing business process) " in "Service Platform Reference Guide".
The procedure to re-execute all the target process instances in the batch mode is as follows:
cscpireexec -user <Login user ID> -pass <Login password> -csc <HCSC server name> -all |
cscpireexec -user < Login user ID > -pass < Login password > -csc HCSC -all |
For details on cscpireexec command, see "cscpireexec (re-executing business process) " in "Service Platform Reference Guide".
The procedure to specify HCSC server targeted to re-execute, and re-executing targeted process instances in batch mode is as follows:
cscpireexec -user <Login user ID> -pass <Login password> -csc <HCSC server name> -all -targetcsc <Name of the HCSC server targeted for re-execution> [-status <status of activity which is condition for re-execution>] |
cscpireexec -user <Login user ID> -pass <Login password> -csc HCSC1 -all -targetcsc HCSC2 |
For details on cscpireexec command, see "cscpireexec (re-executing business process) " in "Service Platform Reference Guide"
cscpireexec -user < Login user ID > -pass < Login password > -csc HCSC1 -all -targetcsc HCSC2 -status executing,executingwait,completedwait |
Do not re-execute process instances running on the HCSC server. For re-executing the process instances, first check the error contents in the response and the message logs from the HCSC server, eliminate the cause of the errors, and then re-execute process instances.
If the process instance for re-execution is not present, command ends abnormally.
Result of re-execution of process instance receives response message from process instance even if result is successful or failure due to SOAP fault. In this case, set contents shown below in HCSC-Manager definition file, you can output response message to file.
cscmng.pireexec.response.dir= response message storage directory cscmng.pireexec.response.encoding= response message storage character code |
For details on creating HCSC-Manager definition file, see "2.4.1(1) Storage directory of HCSC-Manager definition file", for details on HCSC-Manager definition file, see "HCSC-Manager definition file" in "Service Platform Reference Guide".
Furthermore, process ID can have long character string (maximum 240 characters). If you set thorough directory in response message output directory, be careful as there is possibility that file cannot be generated. If response message file does not generate even if you perform re-execution, message is output.
When re-execution of process instance fails due to SOAP fault, type and handling of SOAP fault information received from process instance is as follows:
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.