Class CreateAgentFromDescription
java.lang.Object
org.cristalise.kernel.graph.model.Vertex
org.cristalise.kernel.graph.model.GraphableVertex
org.cristalise.kernel.lifecycle.instance.WfVertex
org.cristalise.kernel.lifecycle.instance.Activity
org.cristalise.kernel.lifecycle.instance.predefined.PredefinedStep
org.cristalise.kernel.lifecycle.instance.predefined.CreateItemFromDescription
org.cristalise.kernel.lifecycle.instance.predefined.CreateAgentFromDescription
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cristalise.kernel.lifecycle.instance.WfVertex
WfVertex.Types -
Field Summary
Fields inherited from class org.cristalise.kernel.lifecycle.instance.predefined.CreateItemFromDescription
FACTORY_GENERATED_NAMEFields inherited from class org.cristalise.kernel.lifecycle.instance.predefined.PredefinedStep
AVAILABLE, DONEFields inherited from class org.cristalise.kernel.lifecycle.instance.Activity
active, mErrors, PREDEF_STEPS_ELEMENT, state, XPATH_TOKENFields inherited from class org.cristalise.kernel.graph.model.GraphableVertex
mIsComposite -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateAgentAddRoles(AgentPath newAgentPath, String[] roles, String pwd, TransactionKey transactionKey) Create Corba server, AgentPath and add Roles to agentprotected StringrunActivityLogic(AgentPath agentPath, ItemPath descItemPath, int transitionID, String requestData, TransactionKey transactionKey) Params: Agent name Domain context Comma-delimited Role names to assign to the Agent Password (optional) Description version to use(optional) Initial properties to set in the new Agent (optional)Methods inherited from class org.cristalise.kernel.lifecycle.instance.predefined.CreateItemFromDescription
getItemName, initialiseItem, instantiateCollection, instantiateCollections, instantiateProperties, instantiateViewpoint, instantiateWorkflow, storeItem, unmarshallInitPropertiesMethods inherited from class org.cristalise.kernel.lifecycle.instance.predefined.PredefinedStep
bundleData, bundleData, computeUpdates, getActive, getDataList, getErrors, getName, getPredefStepOutcomeNode, getPredefStepSchemaName, getStepInstance, getType, mergeProperties, request, storeOutcomeEventAndViews, storeOutcomeEventAndViews, verifyMethods inherited from class org.cristalise.kernel.lifecycle.instance.Activity
abort, addNext, calculateAllJobs, calculateJobs, getCurrentAgentName, getCurrentAgentRole, getDescription, getErrorTransitionId, getNext, getState, getStateDate, getStateMachine, getStateMachine, getStateName, getTypeName, isFinished, loop, reinit, request, request, run, runFirst, runNext, setActive, setActiveDate, setStartDate, setState, setStateDate, setType, toStringMethods inherited from class org.cristalise.kernel.lifecycle.instance.WfVertex
evaluateProperty, evaluatePropertyValue, evaluateScript, findLastVertex, findPair, getActContext, getWfMethods inherited from class org.cristalise.kernel.graph.model.GraphableVertex
addChild, deriveVersionNumber, getBuiltInProperty, getBuiltInProperty, getCentrePoint, getChildren, getChildrenEdges, getChildrenGraphModel, getCreationContext, getInEdgeIds, getInEdges, getInGraphables, getIsComposite, getIsLayoutable, getKeyValuePairs, getLayoutableChildren, getOtherPairingID, getOutEdgeIds, getOutEdges, getOutGraphables, getOutlinePoints, getPairingId, getParent, getPath, getProperties, isMyPair, search, setBuiltInProperty, setChildrenGraphModel, setIsComposite, setIsLayoutable, setKeyValuePairs, setParent, setProperties, updatePropertiesFromCollection, updatePropertiesFromCollectionMethods inherited from class org.cristalise.kernel.graph.model.Vertex
addInEdgeId, addOutEdgeId, clearTag, containsPoint, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setInEdgeIds, setOutEdgeIds, setOutlinePoints, setTag
-
Constructor Details
-
CreateAgentFromDescription
public CreateAgentFromDescription()
-
-
Method Details
-
runActivityLogic
protected String runActivityLogic(AgentPath agentPath, ItemPath descItemPath, int transitionID, String requestData, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException, ObjectAlreadyExistsException, CannotManageException, ObjectCannotBeUpdated, PersistencyException Params:- Agent name
- Domain context
- Comma-delimited Role names to assign to the Agent
- Password (optional)
- Description version to use(optional)
- Initial properties to set in the new Agent (optional)
- Overrides:
runActivityLogicin classCreateItemFromDescription- Parameters:
agentPath-descItemPath-transitionID-requestData-transactionKey-- Returns:
- Throws:
ObjectNotFoundExceptionInvalidDataException- The input parameters were incorrectObjectAlreadyExistsException- The Agent already existsCannotManageException- The Agent could not be createdObjectCannotBeUpdated- The addition of the new entries into the LookupManager failedPersistencyException- See Also:
-
createAgentAddRoles
protected void createAgentAddRoles(AgentPath newAgentPath, String[] roles, String pwd, TransactionKey transactionKey) throws CannotManageException, ObjectCannotBeUpdated, ObjectAlreadyExistsException Create Corba server, AgentPath and add Roles to agent- Parameters:
newAgentPath-roles-- Throws:
CannotManageExceptionObjectCannotBeUpdatedObjectAlreadyExistsException
-