ProcessManagerRometeAPIReference&ProcessManagerInterface–AppendixA//initializeprocessmanager–ProcessStartrelatedAPIs........................................2//processexecution–ProcessExecutionrelatedAPIs..............................................4//processvariable–ProcessVariablerelatedAPIs...................................................5//role–Responsibility/RolerelatedAPIs...................................................................7//messaging,triggering,event,workitemhandling–Message,Trigger,Event,WorkitemrelatedAPIs...............................................................................................9//flowcontrol–ActivityFlowControlrelatedAPI..................................................13//processdefinition–ProcessDefinitionrelatedAPIs............................................14//getProcessDefinitionRemote–ProcessInformationrelatedAPIs.....................18//getProcessDefinition–ProcessInformationCollectionrelatedAPIs................19//ProductionVersion–ProcessVersionrelatedAPIs.............................................21//getResource–FormResourceCollectionrelatedAPIs.......................................23//getProcessInstanceRemote–ProcessOperationInformationrelatedAPIs......24//processInstance–ProcessOperationrelatedAPIs.............................................25//Activity–ActivityrelatedAPIs.............................................................................27//ActivityInstanceProperty–ActivityPropertyrelatedAPIs................................29//importandexport–ProcessDefinitionandDownloadandLoadingrelatedAPIs....................................................................................................................................32//flowchart–FlowchartrelatedAPIs......................................................................34//folder–FolderrelatedAPIs...................................................................................34//dynamicchange–ProcessDefinitionChangeManagementrelatedAPIs.........36//test–TestProcessingrelatedAPIs.......................................................................37//signalingallthechangescanbeapplied–HandlingChangerelatedAPIs.......37//usercanpasssomeparametersintothekernel–HandlinglogininformationrelatedAPIs...............................................................................................................38AppendixA–ProcessManagerRometeAPIReference&ProcessManagerInterfaceForexternalaccess,thesessionbean,org.uengine.processmanager.ProcessManagerBeanissupported.ThefollowingshowsthedefinitionsofProcessManagerinterface.Foroverheadissue,uEnginemakesuseof“StatelessBean”ratherthan“StatefulBean”.Itispossiblethatoverheadforresourcepersistenceisavoidedwiththeuseof“StatelessBean”.Forthepurposeoftheissue,processdefinitionnamesorinstanceIDsshouldbepassedasargumentswheninvokingvariousmethodsifneeded.[Note:DetailedInterfaceinformation,seeAppendixC-ProcessManagerRemoteAPIReference]//initializeprocessmanager–ProcessStartrelatedAPIspublicStringinitialize(StringprocessDefinition,StringinstanceId,RoleMappingloggedRoleMapping)throwsRemoteException;publicStringinitializeProcess(StringprocessDefinition,StringinstanceName)throwsRemoteException;publicStringinitializeProcess(StringprocessDefinition)throwsRemoteException;publicStringinitializeProcessIfRequired(StringprocessDefinition,StringinstanceId)throwsRemoteException;Filenameorg.uengine.processmanager.ProcessManagerRemote.javaMethodnamepublicStringinitialize(StringdefVerId,StringinstanceId,RoleMappingloggedRoleMapping)throwsRemoteException;PurposeMakeprocessManagerinitialzed.ThiscommandconductsthatifinstanceIDisreturnedwithnull,withinitializeProcessfunctionaility,processInstanceiscreated,returnsIDvalue.(sameasinitializeProcessIfRequiredfunction)ParametersdefVerId-definitionversion’sIDvalueinstanceId–instance’sIDvalueloggedRoleMapping–containsrolemappinginformation,RoleMappingobjectReturnValuesInstance’sIDvalueExampleinstanceId=initialize(“100”,instanceId,rolemapping);Filenameorg.uengine.processmanager.ProcessManagerRemote.javaMethodnamepublicStringinitializeProcess(StringdefVerId,StringinstanceName)throwsRemoteException;PurposeCreateaProcessDefinitioninstanceofacorrespondingdefVerIDParametersdefVerId-definitionversion’sIDvalueinstanceName–instance’sname.ReturnValuesInstance’sIDvalueExampleFilenameOrg.uengine.processmanager.ProcessManagerRemoteMethodnamepublicStringinitializeProcess(StringdefVerId)throwsRemoteException;PurposeInitializeprocess.ParametersdefVerId-definitionversion’sIDvalueReturnValuesInstance’sIDvalueExampleFilenameorg.uengine.processmanager.ProcessManagerRemote.javaMethodnamepublicStringinitializeProcessIfRequired(StringdefVerId,StringinstanceId)throwsRemoteException;PurposeIfinstanceIdisnull,returnsinstanceidafterinitializingprocess.(checkinitialize)ParametersdefVerId-definitionversion’sIDvalueinstanceId–instance’sIDvalueReturnValuesInstance’sIDvalueExample//processexecution–ProcessExecutionrelatedAPIspublicvoidexecuteProces