Skip to main content

Flow Rollback with Code

%SystemPath%\Common\eBASystemAPI.dll
using System;
using System.Collections;
using System.Text;
using System.Data;
using eBAControls;
using eBAControls.eBABaseForm;
using eBAFormData;
using eBASystemAPI;
using eBAPI.Connection;

public void gerial_OnClick(Object sender, EventArgs e)
{
eBAConnection con = CreateServerConnection();

Con. open();

Try

{

RollbackFlow(eBAPI.Connection.eBAConnection connection, int processId, int step)

Step how many stepe you will get. If you type 1, it goes to the 1st stepe.
int a=Convert.ToInt32(Text1.Text);

eBASystemAPI.Utils.RollbackFlow(con, a, 2); processno, which stepe will be retrieved from the ID in the flow manager

}

finally

{

Con. Close();

}
}