Process Enactment

Exposing a Cúram workflow process definition as a web service simply requires marking it as such in the Process Definition Tool (PDT) or directly in the metadata as described in Process Definition Metadata. Once the process definitions have been marked as web services the server, the server EAR and the web services EAR file must be rebuilt.

Like other Cúram web services the WSDL for the service can only be accessed once the web services EAR has been deployed. The name of workflow web service is the same as the process name. Thus the WSDL can be accessed at a URL similar to the following: http://testserver:9082/CuramWS/services/<ProcessName>?wsdl

The content of the WSDL is determined in part by the input to the process (the WDO attributes marked as required for enactment) and the process output (the WDO attributes marked as process output) (see Metadata). The WSDL port type is the process name and the operation to enact a process is always startProcess.

Figure 1. Process Enactment Port Type
<wsdl:portType name="SomeCuramWorkflow">
    <wsdl:operation name="startProcess">
      <wsdl:input message="intf:startProcessRequest"
                  name="startProcessRequest"/>
      <wsdl:output message="intf:startProcessResponse"
                   name="startProcessResponse"/>
      <wsdl:fault message="intf:InformationalException"
                  name="InformationalException"/>
      <wsdl:fault message="intf:AppException"
                  name="AppException"/>
    </wsdl:operation>
  </wsdl:portType>