public AssignUpdateImpl(final AssignUpdate assignUpdate) { super(assignUpdate); final Set<String> candidates = assignUpdate.getCandidates(); if (candidates != null && !candidates.isEmpty()) { this.candidates = CopyTool.copy(candidates); } userId = assignUpdate.getAssignedUserId(); }
public AssignUpdateImpl(final AssignUpdate assignUpdate) { super(assignUpdate); final Set<String> candidates = assignUpdate.getCandidates(); if (candidates != null && !candidates.isEmpty()) { this.candidates = CopyTool.copy(candidates); } userId = assignUpdate.getAssignedUserId(); }
public EnumerationTypeDefinitionImpl(final EnumerationTypeDefinition src) { Misc.badStateIfNull(src, "Ouch! Impossible to build a new Definition object from null"); this.enumerationValues = CopyTool.copy(src.getEnumerationValues()); }
protected RuleImpl(final Rule src) { super(src); dbid = src.getId(); uuid = src.getUUID(); name = src.getName(); label = src.getLabel(); exceptions = new HashSet<String>(); final Set<String> items_ = src.getItems(); for (final String item : items_) { exceptions.add(item); } type = src.getType().name(); entities = CopyTool.copy(src.getEntities()); users = CopyTool.copy(src.getUsers()); roles = CopyTool.copy(src.getRoles()); groups = CopyTool.copy(src.getGroups()); memberships = CopyTool.copy(src.getMemberships()); }
public MultiInstantiationDefinitionImpl(final MultiInstantiationDefinition src) { this.variableId = src.getVariableId(); this.className = src.getClassName(); this.parameters = CopyTool.copy(src.getParameters()); }
protected RuleImpl(final Rule src) { super(src); dbid = src.getId(); uuid = src.getUUID(); name = src.getName(); label = src.getLabel(); exceptions = new HashSet<String>(); final Set<String> items_ = src.getItems(); for (final String item : items_) { exceptions.add(item); } type = src.getType().name(); entities = CopyTool.copy(src.getEntities()); users = CopyTool.copy(src.getUsers()); roles = CopyTool.copy(src.getRoles()); groups = CopyTool.copy(src.getGroups()); memberships = CopyTool.copy(src.getMemberships()); }
public PerformerAssignDefinitionImpl(final PerformerAssignDefinition src) { Misc.badStateIfNull(src, "Ouch! Impossible to build a new Definition object from null"); this.className = src.getClassName(); this.parameters = CopyTool.copy(src.getParameters()); }
@Override public Map<ActivityInstanceUUID, Set<String>> getTaskCandidates(final Set<ActivityInstanceUUID> taskUUIDs) throws TaskNotFoundException { final Map<ActivityInstanceUUID, Set<String>> result = new HashMap<ActivityInstanceUUID, Set<String>>(); for (final ActivityInstanceUUID taskUUID : taskUUIDs) { final TaskInstance taskInstance = EnvTool.getAllQueriers(getQueryList()).getTaskInstance(taskUUID); if (taskInstance == null) { throw new TaskNotFoundException("bai_QRAPII_5", taskUUID); } result.put(taskUUID, CopyTool.copy(taskInstance.getTaskCandidates())); } return result; }
public RoleMapperDefinitionImpl(final RoleMapperDefinition src) { Misc.badStateIfNull(src, "Ouch! Impossible to build a new Definition object from null"); this.className = src.getClassName(); this.parameters = CopyTool.copy(src.getParameters()); }
public TransitionRestrictionDefinitionImpl(final TransitionRestrictionDefinition src) { Misc.badStateIfNull(src, "Ouch! Impossible to build a new Definition object from null"); this.joinType = src.getJoinType(); this.splitType = src.getSplitType(); this.splitTransitionRefIds = CopyTool.copy(src.getSplitTransitionRefIds()); }
public ActivityInstanceImpl(final ActivityInstance src) { super(src); clientVariables = src.getVariablesBeforeStarted(); final List<VariableUpdate> list = src.getVariableUpdates(); if (list != null && !list.isEmpty()) { variableUpdates = new ArrayList<VariableUpdate>(); for (final VariableUpdate varUpdate : list) { variableUpdates.add(new VariableUpdateImpl(varUpdate)); } } final List<StateUpdate> stateList = src.getStateUpdates(); if (stateList != null && !stateList.isEmpty()) { stateUpdates = new ArrayList<StateUpdate>(); for (final StateUpdate update : stateList) { stateUpdates.add(new StateUpdateImpl(update)); } } if (src.isTask()) { final TaskInstance task = src.getTask(); final List<AssignUpdate> assignList = task.getAssignUpdates(); if (assignList != null && !assignList.isEmpty()) { assignUpdates = new ArrayList<AssignUpdate>(); for (final AssignUpdate update : assignList) { assignUpdates.add(new AssignUpdateImpl(update)); } } candidates = CopyTool.copy(task.getTaskCandidates()); } }
public SubFlowDefinitionImpl(final SubFlowDefinition src) { Misc.badStateIfNull(src, "Ouch! Impossible to build a new Definition object from null"); this.actualParameters = CopyTool.copy(src.getActualParameters()); this.execution = src.getExecution(); this.id = src.getProcessId(); }
public ActivityInstanceImpl(final ActivityInstance src) { super(src); clientVariables = src.getVariablesBeforeStarted(); final List<VariableUpdate> list = src.getVariableUpdates(); if (list != null && !list.isEmpty()) { variableUpdates = new ArrayList<VariableUpdate>(); for (final VariableUpdate varUpdate : list) { variableUpdates.add(new VariableUpdateImpl(varUpdate)); } } final List<StateUpdate> stateList = src.getStateUpdates(); if (stateList != null && !stateList.isEmpty()) { stateUpdates = new ArrayList<StateUpdate>(); for (final StateUpdate update : stateList) { stateUpdates.add(new StateUpdateImpl(update)); } } if (src.isTask()) { final TaskInstance task = src.getTask(); final List<AssignUpdate> assignList = task.getAssignUpdates(); if (assignList != null && !assignList.isEmpty()) { assignUpdates = new ArrayList<AssignUpdate>(); for (final AssignUpdate update : assignList) { assignUpdates.add(new AssignUpdateImpl(update)); } } candidates = CopyTool.copy(task.getTaskCandidates()); } }
subProcesses = CopyTool.copy(src.getSubProcesses()); } finally { Thread.currentThread().setContextClassLoader(current);
involvedUsers = CopyTool.copy(processInstance.getInvolvedUsers());
subProcesses = CopyTool.copy(src.getSubProcesses()); } finally { Thread.currentThread().setContextClassLoader(current);
@Override public Set<String> getTaskCandidates(final ActivityInstanceUUID taskUUID) throws TaskNotFoundException { final TaskInstance taskInstance = EnvTool.getAllQueriers(getQueryList()).getTaskInstance(taskUUID); if (taskInstance == null) { throw new TaskNotFoundException("bai_QRAPII_5", taskUUID); } return CopyTool.copy(taskInstance.getTaskCandidates()); }
public HookDefinitionImpl(final HookDefinition src) { Misc.badStateIfNull(src, "Ouch! Impossible to build a new Definition object from null"); this.className = src.getClassName(); this.event = src.getEvent(); this.parameters = CopyTool.copy(src.getParameters()); this.throwingException = src.isThrowingException(); }