* Returns activity monitoring info (eg date creation, limit, due (creation + limit), delay and completion) for a process instance ID.
* @param activityInstanceId
* @return
*/
public WorkflowActivity getRunningActivityInfo(String activityInstanceId) {
SharkConnection sc = null;
WorkflowActivity wfAct = new WorkflowActivity();
try {
if (activityInstanceId == null || activityInstanceId.trim().length() == 0) {
return null;
}
sc = connect();
WMSessionHandle sessionHandle = sc.getSessionHandle();
Shark shark = Shark.getInstance();
WfActivityIterator ai = sc.get_iterator_activity();
ActivityFilterBuilder aieb = shark.getActivityFilterBuilder();
WMFilter filter = new WMFilter();
if (activityInstanceId != null && activityInstanceId.trim().length() > 0) {