workItem.setParameter("Description", description);
initializeVariables(workItem, task, nodeInstance);
if (task.getDueDate() != null) {
BusinessCalendar businessCalendar = new BusinessCalendar();
workItem.setParameter("dueDate",
businessCalendar.add(new Date(), new Duration(task.getDueDate())));
}
if (task.getSwimlane() != null) {
String swimlaneName = task.getSwimlane().getName();
SwimlaneContextInstance swimlaneContextInstance = (SwimlaneContextInstance)
nodeInstance.resolveContextInstance(SwimlaneContext.SWIMLANE_SCOPE, swimlaneName);