Skip to main content

Advancing the Flow Waiting in the Flow Stopper

First of all, you need to design a new form, put a button in it and write some code in the button's OnClick event.

A query to add to Integration Manager

SELECT ID FROM FLOWREQUESTS
WHERE PROCESSID= '```<```?=PROCESSID```>```'
AND STATUS=1 AND FLOWOBJECT= '```<```?=OBJECTNAME```>```'
Project References
%SystemPath%\Common\eBAPI.dll
%SystemPath%\Common\eBAIntegrationAPI.dll

using eBAPI;
using eBAPI.Connection;
using eBAPI.Workflow;
using eBAIntegrationAPI;

eBAConnection con = CreateServerConnection();

Con. open();

WorkflowManager wm = con. WorkflowManager;

WorkflowProcess wp = wm. GetProcess(Process Id);

An integration maanger query should be prepared that returns the request id of the Flow Stop from the FLOWREQUESTS table

eBAIntegrationQuery qry = new eBAIntegrationQuery("EBA", "FindFlowPauserRequestId");

qry. parameters.add("processid", "process id");

qry. Parameters.Add("OBJECTNAME", "FlowStopperObjectName");

DataTable dt = qry. Execute(con);

int reqId = int. Parse(dt. Rows[0]["ID"]. ToString()); Request ID

Wp. Continue(reqId, 5); The number on the right is how many events will be continued, confirm the event number 5

Con. Close();