Show TOC Start of Content Area

Background documentation Terminating Event Handler  Locate the document in its SAP Library structure

Purpose

You can use TerminatingEventHandler to handle execution of items for which a workflow with terminating events is defined.

Provider specific Information

TerminatingEventHandler  supports WebFlowConnector provider. Items must belong to the WebFlowConnector.

Supported Actions

Action name can be anything.

Properties

TerminatingEventHandler  expects the following properties:

      objectType (mandatory)

An object type for which a workflow with terminating events is defined.

      objectId (mandatory)

Object id for which an event is triggered.

      eventName (mandatory)

Name of the terminating event.

Configuration for TerminatingEventHandler is done in a custom XML for an item type, for which a workflow with terminating events is defined.

Example

Following is the definition of an item type for which a workflow with two terminating events (approved and rejected) is defined. The sample task TS91100019 is defined as a vacation approval form of type FORMABSENC:

<ItemType name="uwl.task.approval.webflow.TS91100019" connector="WebFlowConnector"

defaultView="WorkItemsApprovalView" >

 <ItemTypeCriteria connector="WebFlowConnector" externalType="TS91100019"/>

  <Actions>

   <Action name="accept" groupAction="yes" handler="TerminatingEventHandler">

    <Properties>

     <Property name="objectType" value="FORMABSENC"/>

     <Property name="eventName" value="approved"/>

     <Property name="objectId" value="${item.externalObjectId}"/>

    </Properties>

    <Descriptions default="Approve"/>

   </Action>

   <Action name="reject" groupAction="yes" handler="TerminatingEventHandler">

    <Properties>

     <Property name="objectType" value="FORMABSENC"/>

     <Property name="eventName" value="rejected"/>

     <Property name="objectId" value="${item.externalObjectId}"/>

     </Properties>

     <Descriptions default="Reject"/>

    </Action>

  </Actions>

</ItemType>

 

End of Content Area