public class CreateItemFromDescription extends PredefinedStep
WfVertex.TypesAVAILABLE, DONEactive, mErrors, state, XPATH_TOKENmIsComposite| Constructor and Description |
|---|
CreateItemFromDescription() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initialiseItem(ItemPath newItem,
AgentPath agent,
ItemPath descItemPath,
PropertyArrayList initProps,
String outcome,
String newName,
String descVer,
DomainPath context,
ItemPath newItemPath,
TransactionKey transactionKey) |
static Collection<?> |
instantiateCollection(String collName,
ItemPath descItemPath,
String descVer,
PropertyArrayList newProps,
TransactionKey transactionKey) |
protected CollectionArrayList |
instantiateCollections(ItemPath descItemPath,
String descVer,
PropertyArrayList newProps,
TransactionKey transactionKey)
Copies the CollectionDescriptions of the Item requesting this predefined step.
|
protected PropertyArrayList |
instantiateProperties(ItemPath descItemPath,
String descVer,
PropertyArrayList initProps,
String newName,
AgentPath agent,
TransactionKey transactionKey) |
protected Viewpoint |
instantiateViewpoint(ItemPath descItemPath,
String descVer,
TransactionKey transactionKey) |
protected CompositeActivity |
instantiateWorkflow(ItemPath descItemPath,
String descVer,
TransactionKey transactionKey)
Retrieve the Workflow dependency for the given description version, instantiate the loaded CompositeActivityDef
|
protected String |
runActivityLogic(AgentPath agent,
ItemPath descItemPath,
int transitionID,
String requestData,
TransactionKey transactionKey)
Params:
Item name
Domain context
Description version to use(optional)
Initial properties to set in the new Agent (optional)
|
static void |
storeItem(AgentPath agent,
ItemPath item,
PropertyArrayList props,
CollectionArrayList colls,
CompositeActivity ca,
Viewpoint initViewpoint,
String initOutcomeString,
TransactionKey transactionKey) |
protected PropertyArrayList |
unmarshallInitProperties(String initPropString)
Unmarshalls initial Properties
|
addAdminAgentRole, bundleData, bundleData, getActive, getDataList, getErrors, getIsPredefined, getName, getPredefStepSchemaName, getStepInstance, getType, request, setIsPredefined, storeOutcomeEventAndViews, storeOutcomeEventAndViews, verifyabort, addNext, calculateAllJobs, calculateJobs, getCurrentAgentName, getCurrentAgentRole, getDescription, getErrorTransitionId, getNext, getState, getStateDate, getStateMachine, getStateMachine, getStateName, getTypeName, isFinished, loop, pushJobsToAgents, pushJobsToAgents, reinit, request, request, run, runFirst, runNext, setActive, setActiveDate, setStartDate, setState, setStateDate, setTypeevaluateProperty, evaluatePropertyValue, evaluateScript, findPair, getActContext, getOtherPairingID, getWf, isMyPairaddChild, deriveVersionNumber, getBuiltInProperty, getBuiltInProperty, getCentrePoint, getChildren, getChildrenEdges, getChildrenGraphModel, getCreationContext, getInEdgeIds, getInEdges, getIsComposite, getIsLayoutable, getKeyValuePairs, getLayoutableChildren, getOutEdgeIds, getOutEdges, getOutGraphables, getOutlinePoints, getParent, getPath, getProperties, search, setBuiltInProperty, setChildrenGraphModel, setIsComposite, setIsLayoutable, setKeyValuePairs, setParent, setProperties, updatePropertiesFromCollection, updatePropertiesFromCollectionaddInEdgeId, addOutEdgeId, clearTag, containsPoint, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setInEdgeIds, setOutEdgeIds, setOutlinePoints, setTagprotected String runActivityLogic(AgentPath agent, ItemPath descItemPath, int transitionID, String requestData, TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException, ObjectAlreadyExistsException, CannotManageException, ObjectCannotBeUpdated, PersistencyException
runActivityLogic in class PredefinedStepObjectNotFoundExceptionInvalidDataException - The input parameters were incorrectObjectAlreadyExistsException - The Agent already existsCannotManageException - The Agent could not be createdObjectCannotBeUpdated - The addition of the new entries into the LookupManager failedPersistencyExceptionprotected void initialiseItem(ItemPath newItem, AgentPath agent, ItemPath descItemPath, PropertyArrayList initProps, String outcome, String newName, String descVer, DomainPath context, ItemPath newItemPath, TransactionKey transactionKey) throws ObjectCannotBeUpdated, CannotManageException, InvalidDataException, ObjectAlreadyExistsException, PersistencyException, ObjectNotFoundException
agent - descItemPath - transactionKey - input - newName - descVer - context - newItemPath - newItem - ObjectCannotBeUpdatedCannotManageExceptionInvalidDataExceptionObjectAlreadyExistsExceptionPersistencyExceptionObjectNotFoundExceptionprotected PropertyArrayList unmarshallInitProperties(String initPropString) throws InvalidDataException
initPropString - InvalidDataExceptionprotected PropertyArrayList instantiateProperties(ItemPath descItemPath, String descVer, PropertyArrayList initProps, String newName, AgentPath agent, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException
descItemPath - descVer - initProps - newName - agent - transactionKey - ObjectNotFoundExceptionInvalidDataExceptionprotected CompositeActivity instantiateWorkflow(ItemPath descItemPath, String descVer, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException, PersistencyException
descItemPath - descVer - transactionKey - ObjectNotFoundExceptionInvalidDataExceptionPersistencyExceptionprotected CollectionArrayList instantiateCollections(ItemPath descItemPath, String descVer, PropertyArrayList newProps, TransactionKey transactionKey) throws ObjectNotFoundException, PersistencyException, InvalidDataException
descItemPath - descVer - transactionKey - ObjectNotFoundExceptionPersistencyExceptionInvalidDataExceptionpublic static Collection<?> instantiateCollection(String collName, ItemPath descItemPath, String descVer, PropertyArrayList newProps, TransactionKey transactionKey) throws PersistencyException, ObjectNotFoundException, InvalidDataException
collName - descItemPath - descVer - newProps - transactionKey - PersistencyExceptionObjectNotFoundExceptionInvalidDataExceptionprotected Viewpoint instantiateViewpoint(ItemPath descItemPath, String descVer, TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException, PersistencyException
descItemPath - descVer - transactionKey - ObjectNotFoundExceptionInvalidDataExceptionPersistencyExceptionpublic static void storeItem(AgentPath agent, ItemPath item, PropertyArrayList props, CollectionArrayList colls, CompositeActivity ca, Viewpoint initViewpoint, String initOutcomeString, TransactionKey transactionKey) throws PersistencyException, ObjectNotFoundException, InvalidDataException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException, IOException, org.exolab.castor.mapping.MappingException
agent - item - props - initViewpoint - initOutcomeString - colls - ca - transactionKey - PersistencyExceptionObjectNotFoundExceptionInvalidDataExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionIOExceptionorg.exolab.castor.mapping.MappingExceptionCopyright © 1997–2022 CRISTAL-iSE. All rights reserved.