how can i programmatically complete a processInstance??
Page 1 / 1
Hi,
You can execute a delete of the process instance with conservation of logs using Management API (you need to be Admin to do this)
Class WorkflowManagmentServer
public bool DeleteProcessInstances(
int procInstID,
bool deleteLogEntries
)
An alternative consits to have a final activity in your design which doing nothing (with a blank server event for example) and, with the Client API, you can execute a GoToActivity from a WorkListItem object :
public void GotoActivity(
string Activity
)
Where activity is the name of your final activity.
HTH
Could you describe a little more about your use case? There are several ways to do this and one might be a better fit depending on what you are trying to accomplish.
I want to multi schedule an activity based on the dates given in a repeating table in infopath. I programmatically assign a datafield with the value of the first date to start with. then i loop through the table and assign subsequent dates to data field. I want to complete the process when there are no more dates. My logic is working fine but the activity is not getting completed.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.