WorkItemRecord item = _worklistController.getCachedWorkItem(workItemID);
TaskInformation taskInfo = _worklistController.getTaskInformation(
item.getSpecificationID(), item.getTaskID(), sessionHandle);
// set instance data
InstanceBuilder ib = new InstanceBuilder(schema, taskInfo.getDecompositionID(), item.getDataListString());
parameters.put("instance", ib.getInstance());
// set input params (if any exist)
YParametersSchema paramsSignature = taskInfo.getParamSchema();
parameters.put("inputparams", getInputOnlyParams(paramsSignature.getInputParams(), paramsSignature.getOutputParams()));
parameters.put("root", taskInfo.getDecompositionID());