Qorus Integration Engine®  4.0.3_git
com.qoretechnologies.qorus.test.FindOrderByKey Class Reference

Finds a workflow order using a key and value. Fails the test if there is more or less than 1 order. More...

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

Public Member Methods

 FindOrderByKey (String workflowName, String workflowVersion, String keyName, String value) throws Throwable
 Creates the action from the arguments. More...
 
FindOrderByKey on (String connectionName) throws Throwable
 Changes the REST helper to be used to find the workflow order. More...
 
Object run (QorusInterfaceTest t) throws Throwable
 Executes the action by calling info.getOrderInfoFromKey() More...
 

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

Finds a workflow order using a key and value. Fails the test if there is more or less than 1 order.

Example:
Object order = exec(new FindOrderByKey("wf name", "1.0", "my_key", "value"));
// use order.getStaticData(), order.getInstanceId() etc.
For finding orders on a remote Qorus instance:
Object order = exec(new FindOrderByKey("wf name", "1.0", "my_key", "value").on("qorus connection name"));
// use order.getStaticData(), order.getInstanceId() etc.

Constructor & Destructor Documentation

◆ FindOrderByKey()

com.qoretechnologies.qorus.test.FindOrderByKey.FindOrderByKey ( String  workflowName,
String  workflowVersion,
String  keyName,
String  value 
) throws Throwable
inline

Creates the action from the arguments.

Parameters
workflowNamethe name of the workflow
workflowVersionthe version of the workflow
keyNamethe name of the key
valuethe value of the key to find

Member Function Documentation

◆ on()

FindOrderByKey com.qoretechnologies.qorus.test.FindOrderByKey.on ( String  connectionName) throws Throwable
inline

Changes the REST helper to be used to find the workflow order.

Parameters
connectionNamethe name of a remote Qorus connection
Returns
this for chaining

◆ run()

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

Executes the action by calling info.getOrderInfoFromKey()

Parameters
tQorusInterfaceTest test object

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