public Object getPersistentState() {
   Map<String, Object> persistentState = new HashMap<String, Object>();
   persistentState.put("processDefinitionId", this.processDefinitionId);
   persistentState.put("businessKey", this.businessKey);
   persistentState.put("activityId", this.activityId);
   persistentState.put("isActive", this.isActive);
   persistentState.put("isConcurrent", this.isConcurrent);
   persistentState.put("isScope", this.isScope);
   persistentState.put("isEventScope", this.isEventScope);
   persistentState.put("parentId", parentId);
   persistentState.put("name", name);
   persistentState.put("lockTime", lockTime);
   persistentState.put("superExecution", this.superExecutionId);
   persistentState.put("rootProcessInstanceId", this.rootProcessInstanceId);
   if (forcedUpdate) {
     persistentState.put("forcedUpdate", Boolean.TRUE);
   }
   persistentState.put("suspensionState", this.suspensionState);
   persistentState.put("startTime", this.startTime);
   persistentState.put("startUserId", this.startUserId);
   persistentState.put("eventSubscriptionCount", eventSubscriptionCount);
   persistentState.put("taskCount", taskCount);
   persistentState.put("jobCount", jobCount);
   persistentState.put("timerJobCount", timerJobCount);
   persistentState.put("suspendedJobCount", suspendedJobCount);
   persistentState.put("deadLetterJobCount", deadLetterJobCount);
   persistentState.put("variableCount", variableCount);
   persistentState.put("identityLinkCount", identityLinkCount);
   return persistentState;
 }
public Object getPersistentState ( ) { Map < String , Object > persistentState = new HashMap < String , Object > ( ) ; persistentState . put ( "processDefinitionId" , this . processDefinitionId ) ; persistentState . put ( "businessKey" , this . businessKey ) ; persistentState . put ( "activityId" , this . activityId ) ; persistentState . put ( "isActive" , this . isActive ) ; persistentState . put ( "isConcurrent" , this . isConcurrent ) ; persistentState . put ( "isScope" , this . isScope ) ; persistentState . put ( "isEventScope" , this . isEventScope ) ; persistentState . put ( "parentId" , parentId ) ; persistentState . put ( "name" , name ) ; persistentState . put ( "lockTime" , lockTime ) ; persistentState . put ( "superExecution" , this . superExecutionId ) ; persistentState . put ( "rootProcessInstanceId" , this . rootProcessInstanceId ) ; if ( forcedUpdate ) { persistentState . put ( "forcedUpdate" , Boolean . TRUE ) ; } persistentState . put ( "suspensionState" , this . suspensionState ) ; persistentState . put ( "startTime" , this . startTime ) ; persistentState . put ( "startUserId" , this . startUserId ) ; persistentState . put ( "eventSubscriptionCount" , eventSubscriptionCount ) ; persistentState . put ( "taskCount" , taskCount ) ; persistentState . put ( "jobCount" , jobCount ) ; persistentState . put ( "timerJobCount" , timerJobCount ) ; persistentState . put ( "suspendedJobCount" , suspendedJobCount ) ; persistentState . put ( "deadLetterJobCount" , deadLetterJobCount ) ; persistentState . put ( "variableCount" , variableCount ) ; persistentState . put ( "identityLinkCount" , identityLinkCount ) ; return persistentState ; }
persistent state /////////////////////////////////////////////////////////