Qorus Integration Engine®
4.0.3.p2_git
|
This class is a helper class that allows workflow dynamic step data to be read and updated atomically; the write lock for the data is grabbed in the constructor and released in the destructor. More...
Public Member Methods | |
constructor () | |
creates the object and grabs the write lock for workflow dynamic step data during the lifetime of the object More... | |
destructor () | |
destroys the object and releases the write lock | |
auto | get (auto field) |
returns the value of one or more keys in the data or the entire data structure depending on the argument More... | |
nothing | replace (*hash< auto > new_data) |
replaces dynamic step data; the data has already been committed to the database when the method returns More... | |
nothing | update (hash< auto > new_data) |
adds data to dynamic step data; the data has already been committed to the database when the method returns More... | |
nothing | deleteKey (softlist< softstring > keylist) |
deletes one or more keys from dynamic step data; the changes have already been committed to the database when the method returns More... | |
This class is a helper class that allows workflow dynamic step data to be read and updated atomically; the write lock for the data is grabbed in the constructor and released in the destructor.
Calls to the following workflow API methods related to workflow dynamic step data can be made normally while this object exists and the write lock is held; the nethods are aware of and automatically use the write lock held by this object:
OMQ::UserApi::Workflow::StepDataHelper::constructor | ( | ) |
creates the object and grabs the write lock for workflow dynamic step data during the lifetime of the object
LOCK-ERROR | another StepDataHelper object exists in the same thread; only one object can be used at a time since the object grabs the write lock |
nothing OMQ::UserApi::Workflow::StepDataHelper::deleteKey | ( | softlist< softstring > | keylist | ) |
deletes one or more keys from dynamic step data; the changes have already been committed to the database when the method returns
this method is equivalent to QorusStepBase::deleteStepDataKey()
auto OMQ::UserApi::Workflow::StepDataHelper::get | ( | auto | field | ) |
returns the value of one or more keys in the data or the entire data structure depending on the argument
this method is equivalent to QorusStepBase::getStepData()
nothing OMQ::UserApi::Workflow::StepDataHelper::replace | ( | *hash< auto > | new_data | ) |
replaces dynamic step data; the data has already been committed to the database when the method returns
nothing OMQ::UserApi::Workflow::StepDataHelper::update | ( | hash< auto > | new_data | ) |
adds data to dynamic step data; the data has already been committed to the database when the method returns
this method is equivalent to QorusStepBase::updateStepData()