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

This class will wait for a workflow order to reach a final status (COMPLETE, ERROR, or CANCELED) More...

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

Public Member Methods

 WaitForWfiid (int wfiid, AbstractTestResult expectedResult, int timeout_ms) throws Throwable
 create the object according to the arguments More...
 
 WaitForWfiid (int wfiid, AbstractTestResult expectedResult) throws Throwable
 create the object according to the arguments More...
 
 WaitForWfiid (int wfiid) throws Throwable
 create the object according to the arguments More...
 
Object run (QorusInterfaceTest t) throws Throwable
 Waits until the given WFIID gets A final status. 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

This class will wait for a workflow order to reach a final status (COMPLETE, ERROR, or CANCELED)

Constructor & Destructor Documentation

◆ WaitForWfiid() [1/3]

com.qoretechnologies.qorus.test.WaitForWfiid.WaitForWfiid ( int  wfiid,
AbstractTestResult  expectedResult,
int  timeout_ms 
) throws Throwable
inline

create the object according to the arguments

Parameters
wfiidthe workflow order instance ID to wait for
expectedResultan AbstractTestResult object; the default value is TestResultSuccess which means that the test succeeds when the order status is COMPLETE
timeout_msthe timeout in milliseconds; if the order does not get a final status in this time period, then the test will fail

To pass if the order status is COMPLETE in the timeout given, then use TestResultSuccess (the default value) for the expectedResult parameter. To pass if the order status is ERROR in the timeout given, then use TestResultExceptionType for the expectedResult parameter to match the "WORKFLOW-ERROR" exception, which is thrown when the order gets an ERROR status within the timeout period To pass if the order status is CANCELED in the timeout given, then use TestResultExceptionType for the expectedResult parameter to match the "QORUS-WORKFLOW-TEST-EXCEPTION" exception, which is thrown when the order gets a CANCELED status within the timeout period

◆ WaitForWfiid() [2/3]

com.qoretechnologies.qorus.test.WaitForWfiid.WaitForWfiid ( int  wfiid,
AbstractTestResult  expectedResult 
) throws Throwable
inline

create the object according to the arguments

Parameters
wfiidthe workflow order instance ID to wait for
expectedResultan AbstractTestResult object; the default value is TestResultSuccess which means that the test succeeds when the order status is COMPLETE

To pass if the order status is COMPLETE in the timeout given, then use TestResultSuccess (the default value) for the expectedResult parameter. To pass if the order status is ERROR in the timeout given, then use TestResultExceptionType for the expectedResult parameter to match the "WORKFLOW-ERROR" exception, which is thrown when the order gets an ERROR status within the timeout period To pass if the order status is CANCELED in the timeout given, then use TestResultExceptionType for the expectedResult parameter to match the "QORUS-WORKFLOW-TEST-EXCEPTION" exception, which is thrown when the order gets a CANCELED status within the timeout period

◆ WaitForWfiid() [3/3]

com.qoretechnologies.qorus.test.WaitForWfiid.WaitForWfiid ( int  wfiid) throws Throwable
inline

create the object according to the arguments

Parameters
wfiidthe workflow order instance ID to wait for

Member Function Documentation

◆ run()

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

Waits until the given WFIID gets A final status.

Parameters
tQorusInterfaceTest test object

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