Qorus Integration Engine®  4.0.3_git
Workflow API Reference

Introduction to the Qorus Workflow API

Each workflow's Program container is set up with the following imported objects:

In addition to the above, all public constants in the OMQ namespace are available.

See also
Designing and Implementing Workflows

This section describes additional classes, constants, and functions that are imported into workflow Program objects by the Qorus system itself that make up the Qorus Workflow API for the Qore proggramming language.

Workflow Class API

The workflow class APIs are documented here:

For class steps, each base step class inherits Workflow::WorkflowApi (Qore) or workflow.WorkflowApi (Java) directly. This means that Qore and Java code can call the static methods defined in the base class directly.

For library classes and other workflow code, calls must be prefixed with the class name (also for all Java code as well).

Qore Workflow Program Container

Each workflow has a single Qore Program logic container containing all its code for the workflow, as well as any objects imported into the Program object (classes, constants, and functions listed as attributes of the workflow when the workflow is defined).

Workflow Program objects are restricted from using elements of the Qore language related to process and thread control; the use of these functions is either dangerous or could violate the integrity of the Qorus server process and therefore is restricted.

To enforce these restrictions, workflow Program logic containers are created with the following sandbox restrictions:

Directive Constant Description
%no-top-level Qore::PO_NO_TOP_LEVEL_STATEMENTS No code is allowed in the top-level statement (outside a function or class)
%no-thread-control Qore::PO_NO_THREAD_CONTROL Thread management functionality is unavailable
%no-process-control Qore::PO_NO_PROCESS_CONTROL Functionality that affects the entire process is unavailable
%no-global-vars Qore::PO_NO_GLOBAL_VARS Global variables may not be defined
%require-our Qore::PO_REQUIRE_OUR All variables must be declared before use

Please see the above links for more information on the features made unavailable when these parse options are set.

Please note that despite these restrictions, workflow program objects have most of the Qore language API and class library available for use.

Furthermore sandbox restrictions apply to Qore code; code in other languages such as Java is not subject to these restrictions.

Furthermore, the following parse defines are defined:

Define Availability Description
Qorus W, S, J Identifies code in Qorus
QorusHasAlerts W, S, J Marks the availability of the alert API (Qorus 3.0+)
QorusHasTableCache W, S, J Marks the availability of the table cache API (Qorus 3.1+)
QorusHasUserConnections W, S, J Marks the availability of the connection API (Qorus 3.0+)
QorusServer W, S, J Identifies code used in Qorus server interfaces
QorusWorkflow W Identifies code used in a workflow Program container
Note
All defines set in qorus.defines (common to workflows, services, and jobs) are also set in Workflow Program containers

Workflow APIs

It is recommended to use the workflow class API instead of workflow API functions, as all future development will be made in the workflow class API.

The following APIs are imported into workflow program logic containers (see also OMQ::UserApi::Workflow):

Qore Method Java Method Qore Function Domain Availability Description
UserApi::auditCheckEventString() UserApi.auditCheckEventString() audit_check_event_string() Audit W, S, J checks if the given audit event (given as a string) is enabled
UserApi::auditCheckEvent() UserApi.auditCheckEvent() audit_check_event() Audit W, S, J checks if the given audit event (given as an integer code) is enabled
UserApi::auditGetMask() UserApi.auditGetMask() audit_get_mask() Audit W, S, J returns the audit event mask
UserApi::auditUserEvent() UserApi.auditUserEvent() audit_user_event() Audit W, S, J creates a user audit event (with audit event code OMQ::AE_USER_EVENT) against the workflow, service, or job instance
UserApi::callNetworkApi() UserApi.callNetworkApi() call_network_api() Utility W, S, J calls a system RPC API with system permissions
UserApi::callNetworkApiArgs() UserApi.callNetworkApiArgs() call_network_api_args() Utility W, S, J calls a system RPC API with system permissions with an explicit argument list argument
UserApi::callNetworkApiArgsWithAuthentication() UserApi.callNetworkApiArgsWithAuthentication() call_network_api_args_with_authentication() Utility W, S, J calls a system RPC API with authentication information (username and password)
UserApi::callRestApi() UserApi.callRestApi() call_rest_api() Utility W, S, J calls a system REST API with system permissions
UserApi::callRestApiWithAuthentication() UserApi.callRestApiWithAuthentication() call_rest_api_with_authentication() Utility W, S, J calls a system REST API with authentication information (username and password)
UserApi::clearSqlTableCache() UserApi.clearSqlTableCache() clear_sql_table_cache() SQL Cache W, S, J clears a cached table from the SQL cache
UserApi::createOrder() UserApi.createOrder() create_order() Utility W, S, J creates a workflow order data instance in the database and returns the workflow_instanceid of the order created
UserApi::createRemoteOrder() UserApi.createRemoteOrder() create_remote_order() Utility W, S, J creates a workflow order data instance in a remote Qorus instance and returns the workflow_instanceid of the order created
UserApi::deserializeQorusData() UserApi.deserializeQorusData() deserialize_qorus_data() Utility W, S, J deserializes strings to Qore data structures
UserApi::execSynchronousWorkflow() UserApi.execSynchronousWorkflow() exec_synchronous_workflow() Utility W, S, J executes a workflow order synchronously and returns the result of execution
UserApi::flushSlaEvents() UserApi.flushSlaEvents() flush_sla_events() SLA W, S, J flushes all pending SLA events to the DB
UserApi::getActiveJobs() UserApi.getActiveJobs() get_active_jobs() System Info W, S, J returns information about active jobs
WorkflowApi::getConfigItemHash() WorkflowApi.getConfigItemHash() n/a n/a W retrieves a hash of all step configuration items
WorkflowApi::getConfigItemValue() WorkflowApi.getConfigItemValue() n/a n/a W retrieves the value of a step configuration item
UserApi::getDatasourceDedicated() n/a get_datasource_dedicated() Connections W, S, J returns a dedicated Qore::SQL::Datasource object
UserApi::getDatasourcePool() UserApi.getDatasourcePool() get_datasource_pool() Connections W, S, J returns a shared Qore::SQL::DatasourcePool object
UserApi::getGlobalConfigItemValue() UserApi.getGlobalConfigItemValue() n/a Qorus System Information API W, S, J returns the value of the given configuration item on global level
WorkflowApi::getOption() WorkflowApi.getOption() get_option() Options W, S, J returns the value of one or more system or interface options
UserApi::getQorusOptions() UserApi.getQorusOptions() get_qorus_options() Options W, S, J returns the value of system options
UserApi::getQorusOptionsArgs() UserApi.getQorusOptionsArgs() get_qorus_options_args() Options W, S, J returns the value of system options
UserApi::getQorusOptionInfo() UserApi.getQorusOptionInfo() get_qorus_option_info() Options W, S, J returns information about system options
UserApi::getQorusOptionInfoArgs() UserApi.getQorusOptionInfoArgs() get_qorus_option_info_args() Options W, S, J returns information about system options
UserApi::getRemoteRestConnection() UserApi.getRemoteRestConnection() get_remote_rest_connection() Connections W, S, J returns a QorusSystemRestHelper to a remote Qorus instance
UserApi::getRemoteRpcConnection() n/a get_remote_rpc_connection() Connections W, S, J returns a QorusSystemAPIHelper to a remote Qorus instance
UserApi::getRunningWorkflowInfo() UserApi.getRunningWorkflowInfo() get_running_workflow_info() System Info W, S, J returns information about a running workflow execution instance
UserApi::getRunningWorkflowList() UserApi.getRunningWorkflowList() get_running_workflow_list() System Info W, S, J returns information about running workflow execution instances
UserApi::getServiceInfo() UserApi.getServiceInfo() get_service_info() System Info W, S, J returns information about a service
UserApi::getSessionId() UserApi.getSessionId() get_session_id() System Info W, S, J returns the current application session ID
UserApi::getSqlTable() UserApi.getSqlTable() get_sql_table() SQL Cache W, S, J retrieves an AbstractTable object from the SQL cache for DML operations
UserApi::getSqlCacheInfo() UserApi.getSqlCacheInfo() get_sql_cache_info() SQL Cache W, S, J returns information about the SQL cache
UserApi::getSystemInfo() UserApi.getSystemInfo() get_system_info() System Info W, S, J returns information about the system
UserApi::getSystemServiceInfo() UserApi.getSystemServiceInfo() get_system_service_info() System Info W, S, J returns information about a system service
UserApi::getUserConnection() UserApi.getUserConnection() get_user_connection() Connections W, S, J returns the given user connection object
UserApi::getUserServiceInfo() UserApi.getUserServiceInfo() get_user_service_info() System Info W, S, J returns information about a user service
UserApi::getValueMap() UserApi.getValueMap() get_value_map() Value Maps W, S, J retrieves a value mapping from a value map
UserApi::getValueMaps() UserApi.getValueMaps() get_value_maps() Value Maps W, S, J retrieves a list of all known value sets
WorkflowApi::log() WorkflowApi.log() log() logging W, S, J outputs a log message in the workflow's log file
UserApi::getNextSequenceValue() UserApi.getNextSequenceValue() next_sequence_value() Utility W, S, J returns the next value from the given datasource and database sequence
UserApi::sleep() WorkflowApi.sleep() omqsleep() Utility W, S, J safely pause execution for a defined period of time
UserApi::usleep() WorkflowApi.usleep() omqusleep() Utility W, S, J safely pause execution for a defined period of time
UserApi::postSlaEventError() UserApi.postSlaEventError() post_sla_event_error() SLA W, S, J posts an unsuccessful event for SLA and performance tracking
UserApi::postSlaEventSuccess() UserApi.postSlaEventSuccess() post_sla_event_success() SLA W, S, J posts a successful event for SLA and performance tracking
UserApi::postSyncEvent() UserApi.postSyncEvent() post_sync_event() Utility W, S, J posts a workflow synchronization event given the event type name and event key
UserApi::postUserEvent() UserApi.postUserEvent() post_user_event() Utility W, S, J posts an application event of class OMQ::QE_CLASS_USER
UserApi::propGet() UserApi.propGet() prop_get() System Props W, S, J returns the value of the given system property key in the given domain or NOTHING if the system property does not exist
UserApi::propUpdate() UserApi.propUpdate() prop_update() System Props W, S, J changes (inserts, updates, or deletes) the value of one or more system properties
UserApi::qorusGetLocalUrl() UserApi.qorusGetLocalUrl() qorus_get_local_url() System Info W, S, J returns a URL for the current system
UserApi::raiseTransientAlert() UserApi.raiseTransientAlert() raise_transient_alert() Alerts W, S, J raises a transient alert
UserApi::restartTransaction() UserApi.restartTransaction() restart_transaction() Utility W, S, J enables recovery from restartable DB communication errors
UserApi::runtimeProperties() UserApi.runtimeProperties() runtime_properties() System Info W, S, J returns information about runtime system defines defined
UserApi::serializeQorusData() UserApi.serializeQorusData() serialize_qorus_data() Utility W, S, J serializes Qore data structures to strings
WorkflowApi::setOption() WorkflowApi.setOption() set_option() Options W, S, J sets option values on a workflow, service, or job
WorkflowApi::addOrderNote() WorkflowApi.addOrderNote() wf_add_order_note() WF Misc W adds a note to a workflow order
QorusEventStepBase::bindEvent() QorusEventStepBase.bindEvent() wf_bind_event() WF Event W binds a workflow synchronization event to the current binds a workflow synchronization event to the current workflow synchronization event step
QorusEventStepBase::bindEventUnposted() QorusEventStepBase.bindEventUnposted() wf_bind_event_unposted() WF Event W binds an unposted workflow synchronization event to the current workflow synchronization event step
QorusSubworkflowStepBase::bindSubworkflow() QorusSubworkflowStepBase.bindSubworkflow() wf_bind_subworkflow() WF Sub W binds a subworkflow to the current subworkflow step
WorkflowApi::deleteDynamicDataKey() WorkflowApi.deleteDynamicDataKey() wf_delete_dynamic_data_key() WF Data W deletes a key in Workflow Dynamic Order Data
WorkflowApi::deleteInstanceDataKey() WorkflowApi.deleteInstanceDataKey() wf_delete_instance_data_key() WF Data W deletes a key in Workflow Execution Instance Data
WorkflowApi::deleteSensitiveData() WorkflowApi.deleteSensitiveData() wf_delete_sensitive_data() WF Data W deletes the sensitive data hash for the given sensitive data key and value
WorkflowApi::deleteSensitiveDataKey() WorkflowApi.deleteSensitiveDataKey() wf_delete_sensitive_data_key() WF Data W deletes one or more keys from the workflow order data instance’s sensitive data hash for the given sensitive data key and value
WorkflowApi::deleteTempDataKey() WorkflowApi.deleteTempDataKey() wf_delete_temp_data_key() WF Data W deletes a key in Workflow Temporary Order Data
WorkflowApi::generateUniqueKey() WorkflowApi.generateUniqueKey() wf_generate_unique_key() WF Misc W returns a unique key that can be used for an asynchronous step event key
WorkflowApi::getDynamicData() WorkflowApi.getDynamicData() wf_get_dynamic_data() WF Data W retrieves information from Workflow Dynamic Order Data
WorkflowApi::getErrorInfo() WorkflowApi.getErrorInfo() wf_get_error_info() WF Misc W returns information about the given workflow error
WorkflowApi::getInstanceData() WorkflowApi.getInstanceData() wf_get_instance_data() WF Data W retrieves information from Workflow Execution Instance Data
WorkflowApi::getOrderKeys() WorkflowApi.getOrderKeys() wf_get_order_keys() WF Misc W returns information about order keys associated with the current workflow order
WorkflowApi::getOrderNotes() WorkflowApi.getOrderNotes() wf_get_order_notes() WF Misc W retrieves notes saved against the workflow order
WorkflowApi::parentWfiid() WorkflowApi.parentWfiid() wf_get_parent_workflow_instanceid() WF Misc W returns the current workflow order's parent workflow_instanceid, if any
WorkflowApi::getSensitiveData() WorkflowApi.getSensitiveData() wf_get_sensitive_data() WF Data W retrieves the sensitive data hash for the given sensitive data key and value
WorkflowApi::getSensitiveDataFromAlias() WorkflowApi.getSensitiveDataFromAlias() wf_get_sensitive_data_from_alias() WF Data W retrieves the sensitive data hash for the given sensitive data alias
WorkflowApi::getSensitiveDataKeyValues() WorkflowApi.getSensitiveDataKeyValues() wf_get_sensitive_data_key_values() WF Data W retrieves a hash of sensitive data keys and values saved against the order
WorkflowApi::getStaticData() WorkflowApi.getStaticData() wf_get_static_data() WF Data W retrieves information from Workflow Static Order Data
WorkflowApi::getStepInfo() WorkflowApi.getStepInfo() wf_get_step_info() WF Misc W returns information about the current step
WorkflowApi::getStepStatus() WorkflowApi.getStepStatus() wf_get_step_status() WF Misc W returns information about the status of the given step
WorkflowApi::getTempData() WorkflowApi.getTempData() wf_get_temp_data() WF Data W retrieves information from Workflow Temporary Order Data
WorkflowApi::getWorkflowInstanceData() WorkflowApi.getWorkflowInstanceData() wf_get_workflow_instance_data() WF Data W retrieves information from the running workflow execution instance itself
WorkflowApi::getWorkflowMetadata() WorkflowApi.getWorkflowMetadata() wf_get_workflow_metadata() WF Misc W returns workflow metadata for the current workflow
WorkflowApi::parentWfiid() WorkflowApi.parentWfiid() wf_parent_wfiid() WF Misc W returns the order's parent workflow_instanceid, if any, otherwise returns NOTHING
WorkflowApi::rescheduleOrder() WorkflowApi.rescheduleOrder() wf_reschedule_order() WF Attach W changes the earliest possible processing date for the current workflow order instance in the attach function
WorkflowApi::reprioritizeOrder() WorkflowApi.reprioritizeOrder() wf_reprioritize_order() WF Misc W set the priority value of a workflow order instance
WorkflowApi::setBlocked() WorkflowApi.setBlocked() wf_set_blocked() WF Attach W sets the current workflow order instance to status OMQ::StatBlocked in the attach function
WorkflowApi::setRetryDelay() WorkflowApi.setRetryDelay() wf_set_retry_delay() WF Errors W sets the retry delay explicitly after raising an error against the workflow order instance with wf_serror()
WorkflowApi::setCustomStatus() WorkflowApi.setCustomStatus() wf_set_custom_status() WF Misc W sets a custom status value for the current workflow order data instance
WorkflowApi::setOrderKeys() WorkflowApi.setOrderKeys() wf_set_order_keys() WF Misc W sets order keys on the current workflow order instance
WorkflowApi::stepError() WorkflowApi.stepError() wf_serror() WF Errors W raises an error against the workflow order data without affecting the flow of processing
QorusAsyncStepBase::skipAsyncStep() QorusAsyncStepBase.skipAsyncStep() wf_skip_async_step() WF Async W skips setting an asynchronous key for an asynchronous step
QorusEventStepBase::skipEvent() QorusEventStepBase.skipEvent() wf_skip_event() WF Event W skips binding a workflow synchronization event to the current workflow synchronization event step
QorusSubworkflowStepBase::skipSubworkflow() QorusSubworkflowStepBase.skipSubworkflow() wf_skip_subworkflow() WF Sub W skips the subworkflow bind in a subworkflow step
WorkflowApi::stepExecuted() WorkflowApi.stepExecuted() wf_step_executed() WF Misc W verifies if a step has been executed on the current workflow order instance and has status COMPLETE
QorusAsyncStepBase::submitAsyncKey() QorusAsyncStepBase.submitAsyncKey() wf_submit_async_key() WF Async W submits an async key for an asynchronous step
WorkflowApi::() WorkflowApi.stepWarning() wf_swarning() WF Errors W raises a warning against the workflow order data
WorkflowApi::updateDynamicData() WorkflowApi.updateDynamicData() wf_update_dynamic_data() WF Data W performs an update in Workflow Dynamic Order Data
WorkflowApi::updateInstanceData() WorkflowApi.updateInstanceData() wf_update_instance_data() WF Data W performs an update in Workflow Execution Instance Data
WorkflowApi::updateSensitiveData() WorkflowApi.updateSensitiveData() wf_update_sensitive_data() WF Data W performs an update in Sensitive Data
WorkflowApi::updateSensitiveDataFromAlias() WorkflowApi.updateSensitiveDataFromAlias() wf_update_sensitive_data_from_alias() WF Data W performs an update in Sensitive Data from a sensitive data alias
WorkflowApi::updateTempData() WorkflowApi.updateTempData() wf_update_temp_data() WF Data W performs an update in Workflow Temporary Order Data
WorkflowApi::getWfiid() WorkflowApi.getWfiid() wf_wfiid() WF Misc W returns the current order's workflow_instanceid

Workflow API Classes

The following classes are imported into workflow program logic containers:

Qore Class Java Class Availability Description
AbstractFsRemoteReceive AbstractFsRemoteReceive W, S, J provides an API for streaming data from a remote filesystem through a remote Qorus instance
AbstractParallelStream n/a W, S, J provides an abstract base class for streaming data to or from a remote database through a remote Qorus instance and also provides static helper methods
DbRemote DbRemote W, S, J provides an API wrapper for all system.sqlutil service methods
DbRemoteReceive DbRemoteReceive W, S, J provides an API for streaming data from a remote database through a remote Qorus instance
DbRemoteSend DbRemoteSend W, S, J provides an API for streaming data to a remote database through a remote Qorus instance
DynamicDataHelper DynamicDataHelper W provides an API for managing dynamic data atomically in workflows
FsRemote FsRemote W, S, J provides an API wrapper for all system.fs service methods
FsRemoteSend FsRemoteSend W, S, J provides an API for streaming data to a remote filesystem through a remote Qorus instance
QorusInboundTableMapper InboundTableMapper W, S, J provides an API for mapping data to a DB table
QorusInboundTableMapperIterator n/a W, S, J provides an iterator-based API for mapping data to a DB table
QorusRawSqlStatementOutboundMapper RawSqlStatementOutboundMapper W, S, J provides an API for mapping from SQL statement using direct SQL statements passed in
QorusRemoteServiceHelper n/a W, S, J provides an API for calling service methods in remote Qorus instances
QorusSqlStatementOutboundMapper SqlStatementOutboundMapper W, S, J provides an API for mapping from SQL statement using SqlUtil
QorusSystemAPIHelper n/a W, S, J provides an API for calling RPC API methods in remote Qorus instances
OMQ::QorusSystemRestHelper QorusSystemRestHelper W, S, J provides an API for using the REST API in remote Qorus instances
SensitiveDataHelper SensitiveDataHelper W provides an API for managing sensitive data atomically in workflows
TempDataHelper TempDataHelper W provides an API for managing temp data atomically in workflows
UserApi UserApi W, S, J the primary shared Qorus API class
WorkflowApi WorkflowApi W the primary workflow API class

Workflow API Qore Modules

The following modules are imported by default into Qore workflow program logic containers:

Name Availability Description
json W, S, J provides APIs for JSON data serialization and deserialization support
Mime W, S, J provides MIME definitions and functionality
Mapper W, S, J provides a data-mapping API
SoapClient W, S, J provides a SOAP client API
SqlUtil W, S, J provides high-level APIs for programmatic DML (SQL data manipulation), DDL (creating, querying, manipulating database definitions), and DBA operations
TableMapper W, S, J provides high-level APIs for mapping data to and from database tables
Util W, S, J provides utility APIs
uuid W, S, J provides an API for generating UUIDs
xml W, S, J provides APIs for parsing, validating, and generating XML documents
yaml W, S, J provides APIs for Qore's YAML-based data serialization and deserialization support
Note
other modules can be imported using the %requires directive, and it's always safe to %require a module that's already imported into the current Program container

Workflow API Overview

This section lists all of the API methods specific to workflows; the main workflow API classes are:

Note
  • Workflow-specific API functions have been superceded by the API classes listed above; the old workflow api functions can be found in the OMQ::UserApi::Workflow namespace and are prefixed by "wf_".
  • Qorus class-based steps should inherit a specific class depending on the step type; see Class Step Definitions for more information
See also
  • Qorus Common Server API for APIs and API concepts common to all Qorus server code (workflows, services, and jobs).
  • Qorus Common API for a definition of API definitions common to all Qorus user code (workflows, services, and jobs) as well as the client library.

Workflow logging APIs:

Workflow Miscellaneous API

Miscellaneous workflow API functions:

Qore Method Java Method Qore Function Desc
WorkflowApi::addOrderNote() WorkflowApi.addOrderNote() wf_add_order_note() adds a note to a workflow order
WorkflowApi::generateUniqueKey() WorkflowApi.generateUniqueKey() wf_generate_unique_key() returns a unique key that can be used for an asynchronous step event key
WorkflowApi::getErrorInfo() WorkflowApi.getErrorInfo() wf_get_error_info() returns information about the given workflow error
WorkflowApi::getOrderKeys() WorkflowApi.getOrderKeys() wf_get_order_keys() returns information about order keys associated with the current workflow order
WorkflowApi::getOrderNotes() WorkflowApi.getOrderNotes() wf_get_order_notes() retrieves notes saved against the workflow order
WorkflowApi::getStepInfo() WorkflowApi.getStepInfo() wf_get_step_info() returns information about the current step
WorkflowApi::getStepStatus() WorkflowApi.getStepStatus() wf_get_step_status() returns information about the status of the given step
WorkflowApi::getWorkflowMetadata() WorkflowApi.getWorkflowMetadata() wf_get_workflow_metadata() returns workflow metadata for the current workflow
WorkflowApi::parentWfiid() WorkflowApi.parentWfiid() wf_parent_wfiid() returns the order's parent workflow_instanceid, if any, otherwise returns NOTHING
WorkflowApi::reprioritizeOrder() WorkflowApi.reprioritizeOrder() wf_reprioritize_order() set the priority value of a workflow order instance
WorkflowApi::setCustomStatus() WorkflowApi.setCustomStatus() wf_set_custom_status() sets a custom status value for the current workflow order data instance
WorkflowApi::setOrderKeys() WorkflowApi.setOrderKeys() wf_set_order_keys() sets order keys on the current workflow order instance
WorkflowApi::stepExecuted() WorkflowApi.stepExecuted()</td> wf_step_executed() verifies if a step has been executed on the current workflow order instance and has status COMPLETE
WorkflowApi::getWfiid() WorkflowApi.getWfiid() wf_wfiid() returns the current order's workflow_instanceid

Workflow Data API

API calls related to workflow data (see Workflow Data):

Qore Method Java Method Qore Function Desc
WorkflowApi::deleteDynamicDataKey() WorkflowApi.deleteDynamicDataKey() wf_delete_dynamic_data_key() deletes a key in Workflow Dynamic Order Data
WorkflowApi::deleteDynamicDataKey() WorkflowApi.deleteDynamicDataKey() wf_delete_dynamic_data_key() deletes a key in Workflow Dynamic Order Data
WorkflowApi::deleteInstanceDataKey() WorkflowApi.deleteInstanceDataKey() wf_delete_instance_data_key() deletes a key in Workflow Execution Instance Data
WorkflowApi::deleteSensitiveData() WorkflowApi.deleteSensitiveData() wf_delete_sensitive_data() deletes the sensitive data hash for the given sensitive data key and value
WorkflowApi::deleteSensitiveDataKey() WorkflowApi.deleteSensitiveDataKey() wf_delete_sensitive_data_key() deletes one or more keys from the workflow order data instance’s sensitive data hash for the given sensitive data key and value
WorkflowApi::deleteTempDataKey() WorkflowApi.deleteTempDataKey() wf_delete_temp_data_key() deletes a key in Workflow Temporary Order Data
WorkflowApi::getDynamicData() WorkflowApi.getDynamicData() wf_get_dynamic_data() retrieves information from Workflow Dynamic Order Data
WorkflowApi::getInstanceData() WorkflowApi.getInstanceData() wf_get_instance_data() retrieves information from Workflow Execution Instance Data
WorkflowApi::getSensitiveData() WorkflowApi.getSensitiveData() wf_get_sensitive_data() retrieves the sensitive data hash for the given sensitive data key and value
WorkflowApi::getSensitiveDataFromAlias() WorkflowApi.getSensitiveDataFromAlias() wf_get_sensitive_data_from_alias() retrieves the sensitive data hash for the given sensitive data alias
WorkflowApi::getSensitiveDataKeyValues() WorkflowApi.getSensitiveDataKeyValues() wf_get_sensitive_data_key_values() retrieves a hash of sensitive data keys and values saved against the order
WorkflowApi::getStaticData() WorkflowApi.getStaticData() wf_get_static_data() retrieves information from Workflow Static Order Data
WorkflowApi::getTempData() WorkflowApi.getTempData() wf_get_temp_data() retrieves information from Workflow Temporary Order Data
WorkflowApi::getWorkflowInstanceData() WorkflowApi.getWorkflowInstanceData() wf_get_workflow_instance_data() retrieves information from the running workflow execution instance itself
WorkflowApi::updateDynamicData() WorkflowApi.updateDynamicData() wf_update_dynamic_data() performs an update in Workflow Dynamic Order Data
WorkflowApi::updateInstanceData() WorkflowApi.updateInstanceData() wf_update_instance_data() performs an update in Workflow Execution Instance Data
WorkflowApi::updateSensitiveData() WorkflowApi.updateSensitiveData() wf_update_sensitive_data() performs an update in Sensitive Data
WorkflowApi::updateSensitiveDataFromAlias() WorkflowApi.updateSensitiveDataFromAlias() wf_update_sensitive_data_from_alias() performs an update in Sensitive Data from a sensitive data alias
WorkflowApi::updateTempData() WorkflowApi.updateTempData() wf_update_temp_data() performs an update in Workflow Temporary Order Data

Workflow Error-Handling API

Functions related to workflow error handling:

Qore Method Java Method Qore Function Desc
WorkflowApi::stepError() WorkflowApi.stepError() wf_serror() raises an error against the workflow order data without affecting the flow of processing
WorkflowApi::setRetryDelay() WorkflowApi.setRetryDelay()</td> wf_set_retry_delay() sets the retry delay explicitly after raising an error against the workflow order instance with WorkflowApi::stepError()
WorkflowApi::stepWarning() WorkflowApi.stepWarning() wf_swarning() raises a warning against the workflow order data

Workflow Async API

API calls that can only be called from asynchronous steps:

Qore Method Java Method Qore Function Desc
QorusAsyncStepBase::skipAsyncStep() QorusAsyncStepBase.skipAsyncStep() wf_skip_async_step() skips setting an asynchronous key for an asynchronous step
QorusAsyncStepBase::submitAsyncKey() QorusAsyncStepBase.submitAsyncKey() wf_submit_async_key() submits an async key for an asynchronous step
Note
Class-based asynchronous steps should inherit one of the following classes where the above methods are implemented:

Workflow Subworkflow API

API calls that can only be called from subworkflow steps:

Qore Method Java Method Qore Function Desc
QorusSubworkflowStepBase::bindSubworkflow() QorusSubworkflowStepBase.bindSubworkflow() wf_bind_subworkflow() binds a subworkflow to the current subworkflow step
QorusSubworkflowStepBase::skipSubworkflow() QorusSubworkflowStepBase.skipSubworkflow() wf_skip_subworkflow() skips the subworkflow bind in a subworkflow step
Note
Class-based subworkflow steps should inherit one of the following classes where the above methods are implemented:

Workflow Event Synchronization API

API calls that can only be called from workflow synchronization event steps:

Qore Method Java Method Qore Function Desc
QorusEventStepBase::bindEvent() QorusEventStepBase.bindEvent() wf_bind_event() binds a workflow synchronization event to the current workflow synchronization event step
QorusEventStepBase::bindEventUnposted() QorusEventStepBase.bindEventUnposted() wf_bind_event_unposted() binds an unposted workflow synchronization event to the current workflow synchronization event step
QorusEventStepBase::skipEvent() QorusEventStepBase.skipEvent() wf_skip_event() skips binding a workflow synchronization event to the current workflow synchronization event step
Note
Class-based event steps should inherit one of the following classes where the above methods are implemented:

Workflow Attach API

API calls that can only be called from the attach function:

Qore Method Java Method Qore Function Desc
WorkflowApi::setBlocked() WorkflowApi.setBlocked() wf_set_blocked() sets the current workflow order instance to status OMQ::StatBlocked in the attach function
WorkflowApi::rescheduleOrder() WorkflowApi.rescheduleOrder() wf_reschedule_order() changes the earliest possible processing date for the current workflow order instance in the attach function