uCosminexus Service Platform, Overview

[Contents][Glossary][Index][Back][Next]

3.2.4 Activity

Activity is a business process component and represents the processing structure. The flow of the business process is defined by linking multiple activities.

Define activity by deploying and linking activites in the Define Business Process Window in the development environment. The following table describes the attribute information of all activities:

Table 3-4 Attribute information of activity

Attribute Description
Process instance identifier Process instance identifier to which the target activity belongs.
Activity number Number to identify activity. Corresponds to the index of activity list.
Business process definition name Definition name of the business process to which the target activity belongs. Corresponds to the service name when invoking from a service requester.
Business process definition version Definition version of the business process to which the target activity belongs.
Activity definition name Activity definition name of the target activity.
Activity type Activity type of the target activity.
Status Status of the target activity.
Start time Start time (GMT) of the target activity.
Note Time when the activity transits to ACTIVE status
End time End time (GMT) of the target activity.
Note Time when activity transits to COMPLETED status
Standby cancellation time Standby cancellation time (GMT) for target activity. Use it for wait activity.

The following figure shows the status transition of the activity:

Figure 3-15 Status transition of activity

[Figure]

  1. When an instance is generated for a new activity.
  2. When you try to execute the activity instance.
  3. When the execution of the activity instance is complete.
  4. When the activity instance was executed but the execution was completed without the instance reaching the executing status.
  5. When you try to execute the receive activity instance other than the reception for which a request is received from the service requester.
  6. When a receive activity instance in waiting status receives a request from the service requester.
  7. When target link is activated in false.
  8. When a fault occurs at the time of executing the activity instance.
  9. When a fault occurs and cancellation of activity execution is requested.
  10. When a fault occurs and activity instance to be caught and handled with fault handler is executing.
  11. When a fault occurs and the execution of activity instance handled in the catch is completed.
  12. When you omit an enclosed activity in case a structured activity is omitted.
  13. When you omit an activity in the unomission status.
  14. When there is an exception in the invoke service activity process, and the activity instance process is aborted due to error.
  15. When you perform re-execution of an activity instance that is an invoke service activity in error status.
  16. When you perform re-execution of a wait activity instance which is in executing status.
  17. When you try to execute a scope activity instance that controls transaction.
  18. When the execution of a scope activity instance that controls the transactions is complete, transits to ("Completed (wait)", and later transits to "Completed".
  19. When an exception occurs in a scope activity instance that controls the transactions and, the activity instance process is aborted due to error.
  20. When you perform re-execution of a scope activity instance that controls transactions that are in an error status.
  21. When you perform invocation after the execution of the reply activity in an asynchronous EJB.
  22. When invocation is performed after the execution of the reply activity by an asynchronous EJB.

The following table lists and describes the status of the activity as shown in "Figure 3-15 Status transition of activity".

Table 3-5 Status of activity

Status Description
READY status Unexecution Status in which the activity instance is not executed and is likely to be executed in the future.
Unomission Status in which the activity instance is not executed and is likely to be omitted in the future.
ACTIVE status Executing Status in which the activity instance is being executed.
Executingwait Status in which rollback is performed, and scope activity instance can be re-executed.
Awaiting Status in which the activity instance is received.
Faulting Activity instance is executing an activity caught by the faultHandler.
ERROR status Error An exception occurs in the invoke service activity or scope activity process and, the activity instance process is aborted due to error.
COMPLETED status Completed Completed status in which the activity instance is executed normally.
Completedwait Status in which the activity instance is normally executed.
Instance of activity is likely to be re-executed.
Canceled Status in which a fault occurs, and execution of the activity instance is canceled.
Faulted Status in which a fault occurs during the execution of the activity instance.
Omitted Status in which the execution of the activity instance is omitted.

For details on all activities, see "5.6 Defining activities" in "Service Platform Basic Development Guide".