Qorus Integration Engine®  4.0.3.p2_git
com.qoretechnologies.qorus.test.ExecSynchronousOrder Class Reference

This class will create and execute a synchronous workflow order. More...

Inheritance diagram for com.qoretechnologies.qorus.test.ExecSynchronousOrder:
com.qoretechnologies.qorus.test.Action org::qore::jni::QoreObjectWrapper

Public Member Methods

 ExecSynchronousOrder (Map< String, Object > orderdata, String expected_status, Map< String, Object > expected_dd) throws Throwable
 creates the action with the order details More...
 
 ExecSynchronousOrder (Map< String, Object > orderdata, String expected_status) throws Throwable
 creates the action with the order details More...
 
 ExecSynchronousOrder (Map< String, Object > orderdata) throws Throwable
 creates the action with the order details More...
 
Object run (QorusInterfaceTest t) throws Throwable
 executes the workflow order synchronously More...
 
HashMap< String, Objectresult () throws Throwable
 returns the result of synchronous workflow execution
 

Additional Inherited Members

- Private Member Methods inherited from com.qoretechnologies.qorus.test.Action
 Action (QoreObject obj)
 protected constructor to create the wrapper object
 

Detailed Description

This class will create and execute a synchronous workflow order.

Constructor & Destructor Documentation

◆ ExecSynchronousOrder() [1/3]

com.qoretechnologies.qorus.test.ExecSynchronousOrder.ExecSynchronousOrder ( Map< String, Object orderdata,
String  expected_status,
Map< String, Object expected_dd 
) throws Throwable
inline

creates the action with the order details

Parameters
orderdataorder details with the following keys:
  • "name": (required) the name of the workflow order to create and execute synchronously
  • "staticdata": (optional hash) the static data for the order; either this key or "external_order_instanceid" is required
  • "external_order_instanceid: (optional string) the external order instance ID for the workflow data; either this key or \c "staticdata" is required - \c "dynamicdata": (optional hash) the initial dynamic data for the order - \c "orderkeys": (optional hash) a hash of order keys for the order - \c "priority": (optional int) the order priority (default @ref OMQ::DefaultOrderPriority) from 0 - 999; priority 0 is the highest; 999 is the lowest - \c "parent_workflow_instanceid": (optional int) a loosely-coupled workflow that will be marked as the parent of this workflow - \c "options": (hash) an optional hash of option names and values; if any options are not valid for the workflow, then an exception is raised and the synchronous workflow execution instance is not started
expected_statusthe expected workflow order status after execution (see Workflow, Segment, and Step Status Descriptions for possible values)
expected_ddthe expected dynamic data after execution; only keys given in the hash will be compared

◆ ExecSynchronousOrder() [2/3]

com.qoretechnologies.qorus.test.ExecSynchronousOrder.ExecSynchronousOrder ( Map< String, Object orderdata,
String  expected_status 
) throws Throwable
inline

creates the action with the order details

Parameters
orderdataorder details with the following keys:
  • "name": (required) the name of the workflow order to create and execute synchronously
  • "staticdata": (optional hash) the static data for the order; either this key or "external_order_instanceid" is required
  • "external_order_instanceid: (optional string) the external order instance ID for the workflow data; either this key or \c "staticdata" is required - \c "dynamicdata": (optional hash) the initial dynamic data for the order - \c "orderkeys": (optional hash) a hash of order keys for the order - \c "priority": (optional int) the order priority (default @ref OMQ::DefaultOrderPriority) from 0 - 999; priority 0 is the highest; 999 is the lowest - \c "parent_workflow_instanceid": (optional int) a loosely-coupled workflow that will be marked as the parent of this workflow - \c "options": (hash) an optional hash of option names and values; if any options are not valid for the workflow, then an exception is raised and the synchronous workflow execution instance is not started
expected_statusthe expected workflow order status after execution (see Workflow, Segment, and Step Status Descriptions for possible values)

◆ ExecSynchronousOrder() [3/3]

com.qoretechnologies.qorus.test.ExecSynchronousOrder.ExecSynchronousOrder ( Map< String, Object orderdata) throws Throwable
inline

creates the action with the order details

Parameters
orderdataorder details with the following keys:
  • "name": (required) the name of the workflow order to create and execute synchronously
  • "staticdata": (optional hash) the static data for the order; either this key or "external_order_instanceid" is required
  • "external_order_instanceid: (optional string) the external order instance ID for the workflow data; either this key or \c "staticdata" is required - \c "dynamicdata": (optional hash) the initial dynamic data for the order - \c "orderkeys": (optional hash) a hash of order keys for the order - \c "priority": (optional int) the order priority (default @ref OMQ::DefaultOrderPriority) from 0 - 999; priority 0 is the highest; 999 is the lowest - \c "parent_workflow_instanceid": (optional int) a loosely-coupled workflow that will be marked as the parent of this workflow - \c "options": (hash) an optional hash of option names and values; if any options are not valid for the workflow, then an exception is raised and the synchronous workflow execution instance is not started

Member Function Documentation

◆ run()

Object com.qoretechnologies.qorus.test.ExecSynchronousOrder.run ( QorusInterfaceTest  t) throws Throwable
inline

executes the workflow order synchronously

Parameters
tQorusInterfaceTest test object

The documentation for this class was generated from the following file: