Since this Thread is being quoted quite often i suggest you remove the "WorkflowProcessInstance" at the end of the Statement (((org.jbpm.workflow.instance.WorkflowProcessInstance)process).getNodeInstances().iterator().next().getNodeName()WorkflowProcessInstance) because it can be a bit confusing imho.