WorkflowActivity beginActivity = workflowProcess.getBeginActivity();
List outTrans = beginActivity.getOutgoingTransitions();
WorkflowTransition firstTransition = (WorkflowTransition) outTrans.get(0);
WorkflowParticipant operator=creator;
WorkflowActivity firstActivity = firstTransition.getToWorkflowActivity();
String workId =
createWork(gCaseDatabaseImpl,operator,conn, workflowProcess, caseId, firstActivity, creator, creationTime);
createPath(gCaseDatabaseImpl,workflowProcess,operator,conn, caseId, null, workId, WorkflowActivityEvent.WORK_DISPATCH);