Package org.bonitasoft.engine.service
Class ModelConvertor
- java.lang.Object
-
- org.bonitasoft.engine.service.ModelConvertor
-
public class ModelConvertor extends java.lang.Object- Author:
- Matthieu Chaffotte, Yanyan Liu, Celine Souchet
-
-
Constructor Summary
Constructors Constructor Description ModelConvertor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,SExpression>constructExpressions(java.util.Map<java.lang.String,org.bonitasoft.engine.expression.Expression> inputs)static SExpressionconstructSExpression(org.bonitasoft.engine.expression.Expression model)static SGroupconstructSGroup(org.bonitasoft.engine.identity.GroupCreator creator)static SGroupconstructSGroup(ExportedGroup exportedGroup)static SProfileMemberconstructSProfileMember(org.bonitasoft.engine.profile.ProfileMemberCreator creator)static SRoleconstructSRole(org.bonitasoft.engine.identity.RoleCreator creator)static SRoleconstructSRole(ExportedRole exportedRole)static SUserconstructSUser(org.bonitasoft.engine.identity.UserCreator creator)static SContactInfoconstructSUserContactInfo(org.bonitasoft.engine.identity.UserCreator creator, long userId, boolean personal)static SContactInfoconstructSUserContactInfo(ExportedUser user, boolean isPersonal, long userId)static org.bonitasoft.engine.identity.impl.CustomUserInfoDefinitionImplconvert(SCustomUserInfoDefinition sDefinition)static org.bonitasoft.engine.identity.impl.CustomUserInfoValueImplconvert(SCustomUserInfoValue sValue)static SOperationconvertOperation(org.bonitasoft.engine.operation.Operation operation)static java.util.List<SOperation>convertOperations(java.util.List<org.bonitasoft.engine.operation.Operation> operations)static org.bonitasoft.engine.bpm.process.ProcessInstanceStategetProcessInstanceState(java.lang.String state)static intgetServerActivityStateId(java.lang.String state)static org.bonitasoft.engine.bpm.flownode.ActivityInstancetoActivityInstance(SActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.ActivityInstance>toActivityInstances(java.util.List<SActivityInstance> sActivities, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.actor.ActorInstancetoActorInstance(SActor actor)static org.bonitasoft.engine.bpm.actor.ActorMembertoActorMember(SActorMember sActorMember)static java.util.List<org.bonitasoft.engine.bpm.actor.ActorMember>toActorMembers(java.util.List<SActorMember> sActorMembers)static java.util.List<org.bonitasoft.engine.bpm.actor.ActorInstance>toActors(java.util.List<SActor> sActors)static org.bonitasoft.engine.session.APISessiontoAPISession(SSession session, java.lang.String tenant)static org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstancetoArchivedActivityInstance(SAActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance>toArchivedActivityInstances(java.util.List<SAActivityInstance> saActivityInstances, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ArchivedAutomaticTaskInstancetoArchivedAutomaticTaskInstance(SAActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ArchivedCallActivityInstancetoArchivedCallActivityInstance(SACallActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.comment.ArchivedCommenttoArchivedComment(SAComment saComment)static java.util.List<org.bonitasoft.engine.bpm.comment.ArchivedComment>toArchivedComments(java.util.List<SAComment> serverObjects)static org.bonitasoft.engine.bpm.connector.ArchivedConnectorInstancetoArchivedConnectorInstance(SAConnectorInstance sAConnectorInstance)static java.util.List<org.bonitasoft.engine.bpm.connector.ArchivedConnectorInstance>toArchivedConnectorInstances(java.util.List<SAConnectorInstance> serverObjects)static org.bonitasoft.engine.bpm.data.ArchivedDataInstancetoArchivedDataInstance(SADataInstance sDataInstance)static java.util.List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance>toArchivedDataInstances(java.util.List<SADataInstance> sADataInstances)static org.bonitasoft.engine.bpm.document.ArchivedDocumenttoArchivedDocument(SAMappedDocument mappedDocument, DocumentService documentService)static java.util.List<org.bonitasoft.engine.bpm.document.ArchivedDocument>toArchivedDocuments(java.util.Collection<SAMappedDocument> mappedDocuments, DocumentService documentService)static org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstancetoArchivedFlowNodeInstance(SAFlowNodeInstance saFlowNode, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstance>toArchivedFlowNodeInstances(java.util.List<SAFlowNodeInstance> saFlowNodes, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ArchivedGatewayInstancetoArchivedGatewayInstance(SAActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ArchivedGatewayInstancetoArchivedGatewayInstance(SAGatewayInstance saGatewayInstance, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstancetoArchivedHumanTaskInstance(SAHumanTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance>toArchivedHumanTaskInstances(java.util.List<? extends SAHumanTaskInstance> sInstances, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ArchivedManualTaskInstancetoArchivedManualTaskInstance(SAManualTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.process.ArchivedProcessInstancetoArchivedProcessInstance(SAProcessInstance sInstance, SProcessDefinition sProcessDefinition)static java.util.List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance>toArchivedProcessInstances(java.util.List<SAProcessInstance> sProcessInstances, SProcessDefinition sProcessDefinition)static java.util.List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance>toArchivedProcessInstances(java.util.List<SAProcessInstance> saProcessInstances, ProcessDefinitionService processDefinitionService)static org.bonitasoft.engine.bpm.flownode.ArchivedReceiveTaskInstancetoArchivedReceiveTaskInstance(SAReceiveTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedReceiveTaskInstance>toArchivedReceiveTaskInstances(java.util.List<SAReceiveTaskInstance> sInstances, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ArchivedSendTaskInstancetoArchivedSendTaskInstance(SASendTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ArchivedSubProcessActivityInstancetoArchivedSubProcessActivityInstance(SASubProcessActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ArchivedUserTaskInstancetoArchivedUserTaskInstance(SAUserTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedUserTaskInstance>toArchivedUserTaskInstances(java.util.List<SAUserTaskInstance> sInstances, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ActivityInstancetoAutomaticTask(SAutomaticTaskInstance sActivity, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.business.data.BusinessDataReferencetoBusinessDataReference(SRefBusinessDataInstance sRefBusinessDataInstance)static org.bonitasoft.engine.bpm.flownode.ActivityInstancetoCallActivityInstance(SCallActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ActivityInstancetoCallActivityInstance(SSubProcessActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.category.Category>toCategories(java.util.List<SCategory> sCategories)static org.bonitasoft.engine.bpm.category.CategorytoCategory(SCategory sCategory)static org.bonitasoft.engine.command.CommandDescriptortoCommandDescriptor(SCommand command)static org.bonitasoft.engine.command.CommandDescriptortoCommandDescriptor(SPlatformCommand platformCommand)static java.util.List<org.bonitasoft.engine.command.CommandDescriptor>toCommandDescriptors(java.util.List<SCommand> sCommands)static org.bonitasoft.engine.bpm.comment.CommenttoComment(SComment sComment)static java.util.List<org.bonitasoft.engine.bpm.comment.Comment>toComments(java.util.List<SComment> sComments)static org.bonitasoft.engine.bpm.connector.ConnectorDefinitiontoConnectorDefinition(SConnectorDefinition connector)static org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptortoConnectorImplementationDescriptor(SConnectorImplementationDescriptor sConnectorImplementationDescriptor)static java.util.List<org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor>toConnectorImplementationDescriptors(java.util.List<SConnectorImplementationDescriptor> sConnectorImplementationDescriptors)static java.util.List<org.bonitasoft.engine.bpm.connector.ConnectorInstance>toConnectorInstances(java.util.List<SConnectorInstance> sConnectorInstances)static org.bonitasoft.engine.bpm.connector.ConnectorInstanceWithFailureInfotoConnectorInstanceWithFailureInfo(SConnectorInstanceWithFailureInfo sConnectorInstanceWithFailureInfo)static org.bonitasoft.engine.bpm.contract.ContractDefinitiontoContract(SContractDefinition sContract)static org.bonitasoft.engine.bpm.data.DataDefinitiontoDataDefinition(SDataDefinition sDataDefinition)static java.util.List<org.bonitasoft.engine.bpm.data.DataDefinition>toDataDefinitions(java.util.List<SDataDefinition> sDataDefinitions)static org.bonitasoft.engine.bpm.data.DataInstancetoDataInstance(SDataInstance sDataInstance)static java.util.List<org.bonitasoft.engine.bpm.data.DataInstance>toDataInstances(java.util.List<SDataInstance> sDataInstances)static org.bonitasoft.engine.bpm.document.DocumenttoDocument(AbstractSMappedDocument mappedDocument, DocumentService documentService)static java.util.List<org.bonitasoft.engine.bpm.document.Document>toDocuments(java.util.Collection<AbstractSMappedDocument> mappedDocuments, DocumentService documentService)static org.bonitasoft.engine.bpm.flownode.EventInstancetoEventInstance(SEventInstance sEvent, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.EventInstance>toEventInstances(java.util.Collection<SEventInstance> sEvents, FlowNodeStateManager flowNodeStateManager)static java.util.List<ExportedCustomUserInfoDefinition>toExportedCustomUserInfoDefinition(java.util.List<SCustomUserInfoDefinition> customUserInfoDefinitions)static java.util.List<ExportedGroup>toExportedGroups(java.util.List<SGroup> sGroups)static java.util.List<ExportedRole>toExportedRoles(java.util.List<SRole> sRoles)static java.util.List<ExportedUserMembership>toExportedUserMembership(java.util.List<SUserMembership> sUserMemberships, java.util.Map<java.lang.Long,java.lang.String> userNames, java.util.Map<java.lang.Long,java.lang.String> groupIdToGroup)static org.bonitasoft.engine.expression.ExpressiontoExpression(SExpression sexp)static java.util.List<org.bonitasoft.engine.expression.Expression>toExpressions(java.util.List<SExpression> sExpressions)static org.bonitasoft.engine.job.FailedJobtoFailedJob(SFailedJob sFailedJob)static java.util.List<org.bonitasoft.engine.job.FailedJob>toFailedJobs(java.util.List<SFailedJob> sFailedJobs)static org.bonitasoft.engine.bpm.flownode.FlowNodeInstancetoFlowNodeInstance(SFlowNodeInstance sFlowNode, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance>toFlowNodeInstances(java.util.List<SFlowNodeInstance> sFlowNodes, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.form.FormMappingtoFormMapping(SFormMapping sFormMapping, FormRequiredAnalyzer formRequiredAnalyzer)static java.util.List<org.bonitasoft.engine.form.FormMapping>toFormMappings(java.util.List<SFormMapping> serverObjects, FormRequiredAnalyzer formRequiredAnalyzer)static org.bonitasoft.engine.bpm.flownode.GatewayInstancetoGatewayInstance(SGatewayInstance sGatewayInstance, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.identity.GrouptoGroup(SGroup sGroup)static java.util.List<org.bonitasoft.engine.identity.Group>toGroups(java.util.List<SGroup> sGroups)static org.bonitasoft.engine.bpm.flownode.HumanTaskInstancetoHumanTaskInstance(SHumanTaskInstance sHumanTask, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance>toHumanTaskInstances(java.util.List<? extends SHumanTaskInstance> sHumanTasks, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.identity.IcontoIcon(SIcon icon)static org.bonitasoft.engine.bpm.flownode.ActivityInstancetoLoopActivityInstance(SLoopActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ManualTaskInstancetoManualTask(SManualTaskInstance sHumanTask, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ActivityInstancetoMultiInstanceActivityInstance(SMultiInstanceActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.operation.OperationtoOperation(SOperation operation)static org.bonitasoft.engine.page.PageURLtoPageURL(SPageURL sPageURL)static org.bonitasoft.engine.platform.PlatformtoPlatform(SPlatform sPlatform, SPlatformProperties sPlatformProperties)static java.util.List<org.bonitasoft.engine.command.CommandDescriptor>toPlatformCommandDescriptors(java.util.List<SPlatformCommand> sPlatformCommands)static org.bonitasoft.engine.bpm.process.ProcessDefinitiontoProcessDefinition(SProcessDefinition sDefinition)static java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>toProcessDeploymentInfo(java.util.List<SProcessDefinitionDeployInfo> processDefinitionDIs)static org.bonitasoft.engine.bpm.process.ProcessDeploymentInfotoProcessDeploymentInfo(SProcessDefinitionDeployInfo processDefinitionDI)static java.util.Map<java.lang.Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo>toProcessDeploymentInfos(java.util.Map<java.lang.Long,SProcessDefinitionDeployInfo> sProcessDeploymentInfos)static org.bonitasoft.engine.bpm.process.ProcessInstancetoProcessInstance(SProcessDefinition definition, SProcessInstance sInstance)static java.util.List<org.bonitasoft.engine.bpm.process.ProcessInstance>toProcessInstances(java.util.List<SProcessInstance> sProcessInstances, ProcessDefinitionService processDefinitionService)static org.bonitasoft.engine.bpm.supervisor.ProcessSupervisortoProcessSupervisor(SProcessSupervisor sSupervisor)static java.util.List<org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor>toProcessSupervisors(java.util.List<SProcessSupervisor> sSupervisors)static org.bonitasoft.engine.profile.ProfiletoProfile(SProfile sProfile)static org.bonitasoft.engine.profile.ProfileMembertoProfileMember(SProfileMember sProfileMember)static java.util.List<org.bonitasoft.engine.profile.ProfileMember>toProfileMembers(java.util.List<SProfileMember> sProfileMembers)static java.util.List<org.bonitasoft.engine.profile.Profile>toProfiles(java.util.List<SProfile> sProfiles)static org.bonitasoft.engine.bpm.flownode.ActivityInstancetoReceiveTaskInstance(SReceiveTaskInstance sReceiveTask, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.identity.RoletoRole(SRole sRole)static java.util.List<org.bonitasoft.engine.identity.Role>toRoles(java.util.List<SRole> sRoles)static org.bonitasoft.engine.bpm.flownode.ActivityInstancetoSendTaskInstance(SSendTaskInstance sSendTask, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.ActivityInstancetoSubProcessActivityInstance(SSubProcessActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.tenant.TenantResourcetoTenantResource(STenantResourceLight r)static org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstancetoTimerEventTriggerInstance(STimerEventTriggerInstance sTimerEventTriggerInstance)static java.util.List<org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstance>toTimerEventTriggerInstances(java.util.List<STimerEventTriggerInstance> sEventTriggerInstances)static org.bonitasoft.engine.identity.UsertoUser(SUser sUser)static org.bonitasoft.engine.identity.UsertoUser(SUser sUser, java.util.Map<java.lang.Long,SUser> userIdToUser)static org.bonitasoft.engine.identity.ContactDatatoUserContactData(SContactInfo sContactData)static java.util.List<org.bonitasoft.engine.identity.UserMembership>toUserMembership(java.util.List<SUserMembership> sUserMemberships)static java.util.List<org.bonitasoft.engine.identity.UserMembership>toUserMembership(java.util.List<SUserMembership> sUserMemberships, java.util.Map<java.lang.Long,java.lang.String> userNames, java.util.Map<java.lang.Long,java.lang.String> groupIdToGroup)static org.bonitasoft.engine.identity.UserMembershiptoUserMembership(SUserMembership sUserMembership)static java.util.List<org.bonitasoft.engine.identity.User>toUsers(java.util.List<SUser> sUsers)static java.util.List<org.bonitasoft.engine.identity.User>toUsers(java.util.List<SUser> sUsers, java.util.Map<java.lang.Long,SUser> userIdToUser)static org.bonitasoft.engine.bpm.flownode.UserTaskInstancetoUserTaskInstance(SUserTaskInstance sUserTask, FlowNodeStateManager flowNodeStateManager)static java.util.List<org.bonitasoft.engine.bpm.flownode.UserTaskInstance>toUserTaskInstances(java.util.List<SUserTaskInstance> sUserTasks, FlowNodeStateManager flowNodeStateManager)static org.bonitasoft.engine.bpm.flownode.WaitingEventtoWaitingEvent(SWaitingEvent sWaitingEvent)static java.util.List<org.bonitasoft.engine.bpm.flownode.WaitingEvent>toWaitingEvents(java.util.List<SWaitingEvent> sWaitingEvents)
-
-
-
Method Detail
-
toAPISession
public static org.bonitasoft.engine.session.APISession toAPISession(SSession session, java.lang.String tenant)
-
toPlatform
public static org.bonitasoft.engine.platform.Platform toPlatform(SPlatform sPlatform, SPlatformProperties sPlatformProperties)
-
toActivityInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.ActivityInstance> toActivityInstances(java.util.List<SActivityInstance> sActivities, FlowNodeStateManager flowNodeStateManager)
-
toFlowNodeInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.FlowNodeInstance> toFlowNodeInstances(java.util.List<SFlowNodeInstance> sFlowNodes, FlowNodeStateManager flowNodeStateManager)
-
toActivityInstance
public static org.bonitasoft.engine.bpm.flownode.ActivityInstance toActivityInstance(SActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)
-
toFlowNodeInstance
public static org.bonitasoft.engine.bpm.flownode.FlowNodeInstance toFlowNodeInstance(SFlowNodeInstance sFlowNode, FlowNodeStateManager flowNodeStateManager)
-
toAutomaticTask
public static org.bonitasoft.engine.bpm.flownode.ActivityInstance toAutomaticTask(SAutomaticTaskInstance sActivity, FlowNodeStateManager flowNodeStateManager)
-
toCallActivityInstance
public static org.bonitasoft.engine.bpm.flownode.ActivityInstance toCallActivityInstance(SCallActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)
-
toCallActivityInstance
public static org.bonitasoft.engine.bpm.flownode.ActivityInstance toCallActivityInstance(SSubProcessActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)
-
toSubProcessActivityInstance
public static org.bonitasoft.engine.bpm.flownode.ActivityInstance toSubProcessActivityInstance(SSubProcessActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)
-
toLoopActivityInstance
public static org.bonitasoft.engine.bpm.flownode.ActivityInstance toLoopActivityInstance(SLoopActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)
-
toMultiInstanceActivityInstance
public static org.bonitasoft.engine.bpm.flownode.ActivityInstance toMultiInstanceActivityInstance(SMultiInstanceActivityInstance sActivity, FlowNodeStateManager flowNodeStateManager)
-
toGatewayInstance
public static org.bonitasoft.engine.bpm.flownode.GatewayInstance toGatewayInstance(SGatewayInstance sGatewayInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedGatewayInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedGatewayInstance toArchivedGatewayInstance(SAGatewayInstance saGatewayInstance, FlowNodeStateManager flowNodeStateManager)
-
toUserTaskInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.UserTaskInstance> toUserTaskInstances(java.util.List<SUserTaskInstance> sUserTasks, FlowNodeStateManager flowNodeStateManager)
-
toUserTaskInstance
public static org.bonitasoft.engine.bpm.flownode.UserTaskInstance toUserTaskInstance(SUserTaskInstance sUserTask, FlowNodeStateManager flowNodeStateManager)
-
toReceiveTaskInstance
public static org.bonitasoft.engine.bpm.flownode.ActivityInstance toReceiveTaskInstance(SReceiveTaskInstance sReceiveTask, FlowNodeStateManager flowNodeStateManager)
-
toSendTaskInstance
public static org.bonitasoft.engine.bpm.flownode.ActivityInstance toSendTaskInstance(SSendTaskInstance sSendTask, FlowNodeStateManager flowNodeStateManager)
-
toHumanTaskInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.HumanTaskInstance> toHumanTaskInstances(java.util.List<? extends SHumanTaskInstance> sHumanTasks, FlowNodeStateManager flowNodeStateManager)
-
toHumanTaskInstance
public static org.bonitasoft.engine.bpm.flownode.HumanTaskInstance toHumanTaskInstance(SHumanTaskInstance sHumanTask, FlowNodeStateManager flowNodeStateManager)
-
toManualTask
public static org.bonitasoft.engine.bpm.flownode.ManualTaskInstance toManualTask(SManualTaskInstance sHumanTask, FlowNodeStateManager flowNodeStateManager)
-
toProcessDefinition
public static org.bonitasoft.engine.bpm.process.ProcessDefinition toProcessDefinition(SProcessDefinition sDefinition)
-
toProcessInstances
public static java.util.List<org.bonitasoft.engine.bpm.process.ProcessInstance> toProcessInstances(java.util.List<SProcessInstance> sProcessInstances, ProcessDefinitionService processDefinitionService)
-
toProcessInstance
public static org.bonitasoft.engine.bpm.process.ProcessInstance toProcessInstance(SProcessDefinition definition, SProcessInstance sInstance)
-
toProcessDeploymentInfo
public static java.util.List<org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> toProcessDeploymentInfo(java.util.List<SProcessDefinitionDeployInfo> processDefinitionDIs)
-
toProcessDeploymentInfo
public static org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo toProcessDeploymentInfo(SProcessDefinitionDeployInfo processDefinitionDI)
-
toProcessDeploymentInfos
public static java.util.Map<java.lang.Long,org.bonitasoft.engine.bpm.process.ProcessDeploymentInfo> toProcessDeploymentInfos(java.util.Map<java.lang.Long,SProcessDefinitionDeployInfo> sProcessDeploymentInfos)
-
toArchivedUserTaskInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedUserTaskInstance toArchivedUserTaskInstance(SAUserTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedReceiveTaskInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedReceiveTaskInstance toArchivedReceiveTaskInstance(SAReceiveTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedSendTaskInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedSendTaskInstance toArchivedSendTaskInstance(SASendTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedUserTaskInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedUserTaskInstance> toArchivedUserTaskInstances(java.util.List<SAUserTaskInstance> sInstances, FlowNodeStateManager flowNodeStateManager)
-
toArchivedReceiveTaskInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedReceiveTaskInstance> toArchivedReceiveTaskInstances(java.util.List<SAReceiveTaskInstance> sInstances, FlowNodeStateManager flowNodeStateManager)
-
toArchivedHumanTaskInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance> toArchivedHumanTaskInstances(java.util.List<? extends SAHumanTaskInstance> sInstances, FlowNodeStateManager flowNodeStateManager)
-
toArchivedHumanTaskInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedHumanTaskInstance toArchivedHumanTaskInstance(SAHumanTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedActivityInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance toArchivedActivityInstance(SAActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedManualTaskInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedManualTaskInstance toArchivedManualTaskInstance(SAManualTaskInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedCallActivityInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedCallActivityInstance toArchivedCallActivityInstance(SACallActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedSubProcessActivityInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedSubProcessActivityInstance toArchivedSubProcessActivityInstance(SASubProcessActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedAutomaticTaskInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedAutomaticTaskInstance toArchivedAutomaticTaskInstance(SAActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedGatewayInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedGatewayInstance toArchivedGatewayInstance(SAActivityInstance sInstance, FlowNodeStateManager flowNodeStateManager)
-
toArchivedActivityInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedActivityInstance> toArchivedActivityInstances(java.util.List<SAActivityInstance> saActivityInstances, FlowNodeStateManager flowNodeStateManager)
-
toArchivedProcessInstances
public static java.util.List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> toArchivedProcessInstances(java.util.List<SAProcessInstance> saProcessInstances, ProcessDefinitionService processDefinitionService)
-
toArchivedProcessInstances
public static java.util.List<org.bonitasoft.engine.bpm.process.ArchivedProcessInstance> toArchivedProcessInstances(java.util.List<SAProcessInstance> sProcessInstances, SProcessDefinition sProcessDefinition)
-
toArchivedProcessInstance
public static org.bonitasoft.engine.bpm.process.ArchivedProcessInstance toArchivedProcessInstance(SAProcessInstance sInstance, SProcessDefinition sProcessDefinition)
-
toGroups
public static java.util.List<org.bonitasoft.engine.identity.Group> toGroups(java.util.List<SGroup> sGroups)
-
toExportedGroups
public static java.util.List<ExportedGroup> toExportedGroups(java.util.List<SGroup> sGroups)
-
toGroup
public static org.bonitasoft.engine.identity.Group toGroup(SGroup sGroup)
-
toUser
public static org.bonitasoft.engine.identity.User toUser(SUser sUser)
-
toUser
public static org.bonitasoft.engine.identity.User toUser(SUser sUser, java.util.Map<java.lang.Long,SUser> userIdToUser)
-
toUserContactData
public static org.bonitasoft.engine.identity.ContactData toUserContactData(SContactInfo sContactData)
-
toUsers
public static java.util.List<org.bonitasoft.engine.identity.User> toUsers(java.util.List<SUser> sUsers, java.util.Map<java.lang.Long,SUser> userIdToUser)
-
toUsers
public static java.util.List<org.bonitasoft.engine.identity.User> toUsers(java.util.List<SUser> sUsers)
-
toRole
public static org.bonitasoft.engine.identity.Role toRole(SRole sRole)
-
toRoles
public static java.util.List<org.bonitasoft.engine.identity.Role> toRoles(java.util.List<SRole> sRoles)
-
toExportedRoles
public static java.util.List<ExportedRole> toExportedRoles(java.util.List<SRole> sRoles)
-
toUserMembership
public static org.bonitasoft.engine.identity.UserMembership toUserMembership(SUserMembership sUserMembership)
-
toUserMembership
public static java.util.List<org.bonitasoft.engine.identity.UserMembership> toUserMembership(java.util.List<SUserMembership> sUserMemberships)
-
toUserMembership
public static java.util.List<org.bonitasoft.engine.identity.UserMembership> toUserMembership(java.util.List<SUserMembership> sUserMemberships, java.util.Map<java.lang.Long,java.lang.String> userNames, java.util.Map<java.lang.Long,java.lang.String> groupIdToGroup)
-
toExportedUserMembership
public static java.util.List<ExportedUserMembership> toExportedUserMembership(java.util.List<SUserMembership> sUserMemberships, java.util.Map<java.lang.Long,java.lang.String> userNames, java.util.Map<java.lang.Long,java.lang.String> groupIdToGroup)
-
toCategory
public static org.bonitasoft.engine.bpm.category.Category toCategory(SCategory sCategory)
-
toCommandDescriptor
public static org.bonitasoft.engine.command.CommandDescriptor toCommandDescriptor(SCommand command)
-
toCommandDescriptor
public static org.bonitasoft.engine.command.CommandDescriptor toCommandDescriptor(SPlatformCommand platformCommand)
-
toCommandDescriptors
public static java.util.List<org.bonitasoft.engine.command.CommandDescriptor> toCommandDescriptors(java.util.List<SCommand> sCommands)
-
toPlatformCommandDescriptors
public static java.util.List<org.bonitasoft.engine.command.CommandDescriptor> toPlatformCommandDescriptors(java.util.List<SPlatformCommand> sPlatformCommands)
-
toCategories
public static java.util.List<org.bonitasoft.engine.bpm.category.Category> toCategories(java.util.List<SCategory> sCategories)
-
toEventInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.EventInstance> toEventInstances(java.util.Collection<SEventInstance> sEvents, FlowNodeStateManager flowNodeStateManager)
-
toEventInstance
public static org.bonitasoft.engine.bpm.flownode.EventInstance toEventInstance(SEventInstance sEvent, FlowNodeStateManager flowNodeStateManager)
-
toTimerEventTriggerInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstance> toTimerEventTriggerInstances(java.util.List<STimerEventTriggerInstance> sEventTriggerInstances)
-
toTimerEventTriggerInstance
public static org.bonitasoft.engine.bpm.flownode.TimerEventTriggerInstance toTimerEventTriggerInstance(STimerEventTriggerInstance sTimerEventTriggerInstance)
-
toWaitingEvent
public static org.bonitasoft.engine.bpm.flownode.WaitingEvent toWaitingEvent(SWaitingEvent sWaitingEvent)
-
toWaitingEvents
public static java.util.List<org.bonitasoft.engine.bpm.flownode.WaitingEvent> toWaitingEvents(java.util.List<SWaitingEvent> sWaitingEvents)
-
toDataInstances
public static java.util.List<org.bonitasoft.engine.bpm.data.DataInstance> toDataInstances(java.util.List<SDataInstance> sDataInstances)
-
toDataDefinitions
public static java.util.List<org.bonitasoft.engine.bpm.data.DataDefinition> toDataDefinitions(java.util.List<SDataDefinition> sDataDefinitions)
-
toDataDefinition
public static org.bonitasoft.engine.bpm.data.DataDefinition toDataDefinition(SDataDefinition sDataDefinition)
-
toExpressions
public static java.util.List<org.bonitasoft.engine.expression.Expression> toExpressions(java.util.List<SExpression> sExpressions)
-
toExpression
public static org.bonitasoft.engine.expression.Expression toExpression(SExpression sexp)
-
toDataInstance
public static org.bonitasoft.engine.bpm.data.DataInstance toDataInstance(SDataInstance sDataInstance)
-
toArchivedDataInstances
public static java.util.List<org.bonitasoft.engine.bpm.data.ArchivedDataInstance> toArchivedDataInstances(java.util.List<SADataInstance> sADataInstances)
-
toArchivedDataInstance
public static org.bonitasoft.engine.bpm.data.ArchivedDataInstance toArchivedDataInstance(SADataInstance sDataInstance)
-
toActorMember
public static org.bonitasoft.engine.bpm.actor.ActorMember toActorMember(SActorMember sActorMember)
-
toActorMembers
public static java.util.List<org.bonitasoft.engine.bpm.actor.ActorMember> toActorMembers(java.util.List<SActorMember> sActorMembers)
-
toActorInstance
public static org.bonitasoft.engine.bpm.actor.ActorInstance toActorInstance(SActor actor)
-
constructSUser
public static SUser constructSUser(org.bonitasoft.engine.identity.UserCreator creator)
-
constructSUserContactInfo
public static SContactInfo constructSUserContactInfo(org.bonitasoft.engine.identity.UserCreator creator, long userId, boolean personal)
-
constructSUserContactInfo
public static SContactInfo constructSUserContactInfo(ExportedUser user, boolean isPersonal, long userId)
-
constructSRole
public static SRole constructSRole(org.bonitasoft.engine.identity.RoleCreator creator)
-
constructSRole
public static SRole constructSRole(ExportedRole exportedRole)
-
constructSGroup
public static SGroup constructSGroup(org.bonitasoft.engine.identity.GroupCreator creator)
-
constructSGroup
public static SGroup constructSGroup(ExportedGroup exportedGroup)
-
toProcessSupervisors
public static java.util.List<org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor> toProcessSupervisors(java.util.List<SProcessSupervisor> sSupervisors)
-
toProcessSupervisor
public static org.bonitasoft.engine.bpm.supervisor.ProcessSupervisor toProcessSupervisor(SProcessSupervisor sSupervisor)
-
toDocuments
public static java.util.List<org.bonitasoft.engine.bpm.document.Document> toDocuments(java.util.Collection<AbstractSMappedDocument> mappedDocuments, DocumentService documentService)
-
toDocument
public static org.bonitasoft.engine.bpm.document.Document toDocument(AbstractSMappedDocument mappedDocument, DocumentService documentService)
-
toArchivedDocuments
public static java.util.List<org.bonitasoft.engine.bpm.document.ArchivedDocument> toArchivedDocuments(java.util.Collection<SAMappedDocument> mappedDocuments, DocumentService documentService)
-
toArchivedDocument
public static org.bonitasoft.engine.bpm.document.ArchivedDocument toArchivedDocument(SAMappedDocument mappedDocument, DocumentService documentService)
-
getServerActivityStateId
public static int getServerActivityStateId(java.lang.String state)
-
getProcessInstanceState
public static org.bonitasoft.engine.bpm.process.ProcessInstanceState getProcessInstanceState(java.lang.String state)
-
toComment
public static org.bonitasoft.engine.bpm.comment.Comment toComment(SComment sComment)
-
toComments
public static java.util.List<org.bonitasoft.engine.bpm.comment.Comment> toComments(java.util.List<SComment> sComments)
-
constructExpressions
public static java.util.Map<java.lang.String,SExpression> constructExpressions(java.util.Map<java.lang.String,org.bonitasoft.engine.expression.Expression> inputs)
-
constructSExpression
public static SExpression constructSExpression(org.bonitasoft.engine.expression.Expression model)
-
convertOperation
public static SOperation convertOperation(org.bonitasoft.engine.operation.Operation operation)
-
convertOperations
public static java.util.List<SOperation> convertOperations(java.util.List<org.bonitasoft.engine.operation.Operation> operations)
-
toConnectorImplementationDescriptors
public static java.util.List<org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor> toConnectorImplementationDescriptors(java.util.List<SConnectorImplementationDescriptor> sConnectorImplementationDescriptors)
-
toConnectorImplementationDescriptor
public static org.bonitasoft.engine.bpm.connector.ConnectorImplementationDescriptor toConnectorImplementationDescriptor(SConnectorImplementationDescriptor sConnectorImplementationDescriptor)
-
toArchivedComments
public static java.util.List<org.bonitasoft.engine.bpm.comment.ArchivedComment> toArchivedComments(java.util.List<SAComment> serverObjects)
-
toArchivedComment
public static org.bonitasoft.engine.bpm.comment.ArchivedComment toArchivedComment(SAComment saComment)
-
toOperation
public static org.bonitasoft.engine.operation.Operation toOperation(SOperation operation)
-
toConnectorDefinition
public static org.bonitasoft.engine.bpm.connector.ConnectorDefinition toConnectorDefinition(SConnectorDefinition connector)
-
toActors
public static java.util.List<org.bonitasoft.engine.bpm.actor.ActorInstance> toActors(java.util.List<SActor> sActors)
-
toArchivedFlowNodeInstances
public static java.util.List<org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstance> toArchivedFlowNodeInstances(java.util.List<SAFlowNodeInstance> saFlowNodes, FlowNodeStateManager flowNodeStateManager)
-
toArchivedFlowNodeInstance
public static org.bonitasoft.engine.bpm.flownode.ArchivedFlowNodeInstance toArchivedFlowNodeInstance(SAFlowNodeInstance saFlowNode, FlowNodeStateManager flowNodeStateManager)
-
toConnectorInstances
public static java.util.List<org.bonitasoft.engine.bpm.connector.ConnectorInstance> toConnectorInstances(java.util.List<SConnectorInstance> sConnectorInstances)
-
toConnectorInstanceWithFailureInfo
public static org.bonitasoft.engine.bpm.connector.ConnectorInstanceWithFailureInfo toConnectorInstanceWithFailureInfo(SConnectorInstanceWithFailureInfo sConnectorInstanceWithFailureInfo)
-
toArchivedConnectorInstance
public static org.bonitasoft.engine.bpm.connector.ArchivedConnectorInstance toArchivedConnectorInstance(SAConnectorInstance sAConnectorInstance)
-
toArchivedConnectorInstances
public static java.util.List<org.bonitasoft.engine.bpm.connector.ArchivedConnectorInstance> toArchivedConnectorInstances(java.util.List<SAConnectorInstance> serverObjects)
-
toProfiles
public static java.util.List<org.bonitasoft.engine.profile.Profile> toProfiles(java.util.List<SProfile> sProfiles)
-
toProfile
public static org.bonitasoft.engine.profile.Profile toProfile(SProfile sProfile)
-
toProfileMembers
public static java.util.List<org.bonitasoft.engine.profile.ProfileMember> toProfileMembers(java.util.List<SProfileMember> sProfileMembers)
-
toProfileMember
public static org.bonitasoft.engine.profile.ProfileMember toProfileMember(SProfileMember sProfileMember)
-
constructSProfileMember
public static SProfileMember constructSProfileMember(org.bonitasoft.engine.profile.ProfileMemberCreator creator)
-
toFailedJobs
public static java.util.List<org.bonitasoft.engine.job.FailedJob> toFailedJobs(java.util.List<SFailedJob> sFailedJobs)
-
toFailedJob
public static org.bonitasoft.engine.job.FailedJob toFailedJob(SFailedJob sFailedJob)
-
convert
public static org.bonitasoft.engine.identity.impl.CustomUserInfoDefinitionImpl convert(SCustomUserInfoDefinition sDefinition)
-
convert
public static org.bonitasoft.engine.identity.impl.CustomUserInfoValueImpl convert(SCustomUserInfoValue sValue)
-
toFormMapping
public static org.bonitasoft.engine.form.FormMapping toFormMapping(SFormMapping sFormMapping, FormRequiredAnalyzer formRequiredAnalyzer)
-
toFormMappings
public static java.util.List<org.bonitasoft.engine.form.FormMapping> toFormMappings(java.util.List<SFormMapping> serverObjects, FormRequiredAnalyzer formRequiredAnalyzer)
-
toBusinessDataReference
public static org.bonitasoft.engine.business.data.BusinessDataReference toBusinessDataReference(SRefBusinessDataInstance sRefBusinessDataInstance)
-
toContract
public static org.bonitasoft.engine.bpm.contract.ContractDefinition toContract(SContractDefinition sContract)
-
toPageURL
public static org.bonitasoft.engine.page.PageURL toPageURL(SPageURL sPageURL)
-
toExportedCustomUserInfoDefinition
public static java.util.List<ExportedCustomUserInfoDefinition> toExportedCustomUserInfoDefinition(java.util.List<SCustomUserInfoDefinition> customUserInfoDefinitions)
-
toIcon
public static org.bonitasoft.engine.identity.Icon toIcon(SIcon icon)
-
toTenantResource
public static org.bonitasoft.engine.tenant.TenantResource toTenantResource(STenantResourceLight r)
-
-