createInstance Attribute for Starting a New Instance
You may notice a createInstance
attribute in the initial receive
activity. In this initial receive
activity, the createInstance
element is set to yes
. This starts a new instance of the BPEL process service component. At least one instance startup is required for a conversation. For this reason, you set the createInstance
variable to no
in the second receive
activity.
The following example shows the source code for the createInstance
attribute:
<!-- receive input from requester -->
<receive name="receiveInput" partnerLink="client"
portType="tns:LoanBroker"
operation="initiate" variable="input"
createInstance="yes"/>