Example of Business Process that Supports Transactions

This example shows a business process that could be marked for enable transaction upon check-in.

The following is an example of a business process that upon check-in, could be marked for enable transaction.

Transaction business process

Code Example - Business Process that Supports Transactions


<process name="example_trans">
  <sequence>
    <operation name="BP MetaData Info Service">
      <participant name="BPMetaDataInfoService"/>
      <output message="Xout">
        <assign to="DISPOSITION">true</assign>
        <assign to="LINKAGE">true</assign>
        <assign to="CORRELATION">true</assign>
        <assign to="TRACE">true</assign>
        <assign to="." from="*"></assign>
      </output>
      <input message="Xin">
        <assign to="." from="*"></assign>
      </input>
    </operation>

    <operation name="LightweightJDBCAdapterType">
      <participant name="LightweightJDBCAdapterQuery"/>
      <output message="LightweightJDBCAdapterTypeInputMessage">
        <assign to="sql">INSERT INTO WORKFLOW_DATA (WF_INSTANCE_ID,DATA_KEY,DATA
_NAME) VALUES (?, ?,?) </assign>
        <assign to="param1" from="&apos;-1&apos;"></assign>
        <assign to="paramtype1">Integer</assign>
        <assign to="param2" from="&apos;TestRollBack_7859&apos;"></assign>
        <assign to="paramtype2">String</assign>
        <assign to="param3" from="&apos;RollbackTest&apos;"></assign>
        <assign to="paramtype3">String</assign>
        <assign to="pool">mysql</assign>
        <assign to="row_name">row</assign>
        <assign to="query_type">ACTION</assign>
        <assign to="result_name">result</assign>
        <assign to="." from="*"></assign>
      </output>
      <input message="inmsg">
        <assign to="." from="*"></assign>
      </input>
    </operation>

  </sequence>
</process>