// To dequeue all the workflow for workflow performance
static void DequeueWorkFlow(Args _args)
{
SysWorkflowMessageTable SysWorkflowMessageTable;
ttsBegin;
while select forUpdate SysWorkflowMessageTable where SysWorkflowMessageTable.MessageLifeCycleState !=2
{
SysWorkflowMessageTable.MessageLifeCycleState =2;
SysWorkflowMessageTable.update();
}
ttsCommit;
}
Regards,
static void DequeueWorkFlow(Args _args)
{
SysWorkflowMessageTable SysWorkflowMessageTable;
ttsBegin;
while select forUpdate SysWorkflowMessageTable where SysWorkflowMessageTable.MessageLifeCycleState !=2
{
SysWorkflowMessageTable.MessageLifeCycleState =2;
SysWorkflowMessageTable.update();
}
ttsCommit;
}
Regards,
No comments:
Post a Comment