taskJob.setLoadValue(new Integer(2));
taskJob.setQueueName(task.getTaskConfig().getProperty(
QUEUE_NAME) != null ? task.getTaskConfig()
.getProperty(QUEUE_NAME) : DEFAULT_QUEUE_NAME);
TaskJobInput in = new TaskJobInput();
in.setDynMetadata(workflowInst.getSharedContext());
in.setTaskConfig(task.getTaskConfig());
in.setWorkflowTaskInstanceClassName(task
.getTaskInstanceClassName());
workflowInst.setStatus(RESMGR_SUBMIT);
persistWorkflowInstance();