Table of Contents

Search

  1. Preface
  2. Part 1: Using Process Developer
  3. Part 2: Creating and Modifying Processes
  4. Part 3: Functions, Events, Errors, and Correlation
  5. Part 4: Testing and Deployment
  6. Part 5: Process Central and Process Server (On-Premises)

Process Developer

Process Developer

Invoke

Invoke

BPMN Implementation: Send task, Service task, Rule task, Message throw event
The invoke activity directs a Web service to perform a one-way or request-response operation. It specifies the participant that provides the service and the operation to invoke. The invoke activity must specify the data for the message transmitted and may specify an output variable or variable part in the case of a synchronous request-response Web service invocation. See Participants for descriptions of concepts important to this activity.
An invoke activity can be compensated, or reversed. For more information, see Compensation.
Required Properties
Optional Properties
Participant (Partner Link)
Operation
Port Type
Input Variable
or
toPart fromVariable
Correlations. See Correlation.
 
Output Variable
 
Input and Output assignments
 
 
Suppress Join Failure. See Process Properties
 
 
 
 
 
Extension Attributes and Extension Elements. See Declaring Extension Elements and Attributes.
To add an invoke activity to the process manually:
  1. Drag a
    Send task
    (or other BPMN implementation mentioned above) to the Process Editor canvas.
  2. You can add a background color to the send, service, and rule tasks.
    In the Properties view, select the following values:
    1. Optionally type in a Name.
    2. In the Participant drop-down, select
      New Partner Service Provider
      . See Creating a New Partner Service Interface.
    3. Select a participant's Operation from the picklist.
  3. In the Input tab, do one of the following:
    • Select Single Variable from the
      Assignment Type
      and select a variable.
    • Select a
      XPaths
      or
      XQuery.
      For details, see From Part to Variable.
  4. Optionally, select an
    output variable
    or a
    to part
    . For details, see From Variable to Part.
  5. Select other optional properties as desired.
A simple example of using an invoke activity in a process is shown in the following illustration.
For another shortcut for creating an invoke activity, see Creating an Activity by Starting with a WSDL Interface.
XML Syntax
<invoke partnerLink="NCName" portType="QName"? operation="NCName" inputVariable="NCName"? outputVariable="NCName"? standard-attributes> standard-elements <correlations>? <correlation set="NCName" initiate="yes|join|no"? pattern="request|response|request-response"/>+ </correlations> <catch faultName="QName"? faultVariable="NCName"? faultMessageType="QName"? faultElement="QName"?>* activity </catch> <catchAll>? activity </catchAll> <compensationHandler>? activity </compensationHandler> <toParts>? <toPart part="NCName" fromVariable="BPELVariableName"/>+ </toParts> <fromParts>? <fromPart part="NCName" toVariable="BPELVariableName"/>+ </fromParts> </invoke>
Example:
<invoke name="invokeapprover" partnerLink="approver" portType="lns:loanApprovalPT" operation="approve" inputVariable="request" outputVariable="approval">

0 COMMENTS

We’d like to hear from you!