ProcessInstances class

Parent Previous Next

The Tasks object specifies a collection of loaded task objects. An instance of the Tasks collection is provided by the Session object.


Namespace:

IYOPRO.Api

Assembly:

IYOPRO.Api (in IYOPRO.Api.dll)


Syntax

       class ProcessInstances()


Members

void Load(Guid piid, object userdata = null)

Retrieves the process instance for the given id.

Userdata will be provided in the ProcessInstanceLoadedEventEventArgs

event ProcessInstanceLoadedEventEventArgs ProcessInstanceLoaded

The ProcessInstanceLoaded event is triggered if the Load method has finished.



Sample

// Load list of tasks

Session session = ...;

Guid myid = ...;


ProcessInstances.ProcessInstanceLoadedEvent handler = null;

handler = (s, args) =>

{

session.ProcessInstances.ProcessInstanceLoaded -= handler;

Data = args.Data;

       ...

};

session.ProcessInstances.ProcessInstanceLoaded += handler;

session.ProcessInstances.Load(myid);