Class ImportItem
java.lang.Object
org.cristalise.kernel.process.module.ModuleImport
org.cristalise.kernel.entity.imports.ImportItem
- All Implemented Interfaces:
DescriptionObject
- Direct Known Subclasses:
Module
Complete Structure for new Item created by different bootstrap uses cases including testing
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArrayList<ImportAggregation> protected CompositeActivityDefAlternative way to provide workflow definition.protected ArrayList<ImportDependency> protected Stringprotected ArrayList<ImportOutcome> protected PropertyArrayListprotected Integerprotected WorkflowAlternative way to provide workflow.protected Stringprotected IntegerFields inherited from class org.cristalise.kernel.process.module.ModuleImport
domainPath, isDOMPathExists, isNewItem, itemPath, name, ns, resourceChangeDetails, resourceChangeStatus -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(AgentPath agentPath, boolean reset, TransactionKey transactionKey) protected CollectionArrayListcreateCollections(TransactionKey transactionKey) protected CompositeActivitycreateCompositeActivity(TransactionKey transactionKey) This method enables to use ImportItem in different bootstrap uses cases (e.g.protected PropertyArrayListbooleanexists(TransactionKey transactionKey) getItemPath(TransactionKey transactionKey) Returns ItemPath if it was already set.Method required to be backward compatible with castor marshalling.getProxy()intGet the workflow version.makeDescCollections(TransactionKey transactionKey) voidvoidsetNamespace(String ns) toString()Methods inherited from class org.cristalise.kernel.process.module.ModuleImport
getID, getNamespace, hashCode, setIDMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cristalise.kernel.utils.DescriptionObject
export, getName, getNamespace, getVersion, getXml, getXml, makeDescCollection, setItemPath, setVersion, toOutcome
-
Field Details
-
version
-
initialPath
-
workflow
-
workflowVer
-
properties
-
aggregationList
-
dependencyList
-
outcomes
-
compActDef
Alternative way to provide workflow definition. It is not marshallable by castor, therefore cannot be set in module.xml -
wf
Alternative way to provide workflow. It is not marshalable by castor, therefore cannot be set in module.xml
-
-
Constructor Details
-
ImportItem
public ImportItem() -
ImportItem
-
ImportItem
-
ImportItem
Constructor with mandatory fields- Parameters:
name-initialPath-itemPath-wf-
-
-
Method Details
-
getDomainPath
-
exists
- Specified by:
existsin interfaceDescriptionObject
-
getItemPath
- Specified by:
getItemPathin interfaceDescriptionObject
-
getProxy
-
getWfVersion
public int getWfVersion()Get the workflow version. Default workflow version is 0 if not given- Returns:
- workflow version (default 0)
-
getItemPath
Returns ItemPath if it was already set. If it was not set yet, it checks DomianPath.target as well.- Overrides:
getItemPathin classModuleImport
-
setNamespace
- Specified by:
setNamespacein interfaceDescriptionObject- Overrides:
setNamespacein classModuleImport
-
setName
- Specified by:
setNamein interfaceDescriptionObject
-
create
public Path create(AgentPath agentPath, boolean reset, TransactionKey transactionKey) throws InvalidDataException, ObjectCannotBeUpdated, ObjectNotFoundException, CannotManageException, ObjectAlreadyExistsException, InvalidCollectionModification, PersistencyException -
createItemProperties
- Returns:
-
createCompositeActivity
protected CompositeActivity createCompositeActivity(TransactionKey transactionKey) throws ObjectNotFoundException, InvalidDataException This method enables to use ImportItem in different bootstrap uses cases (e.g. testing)- Returns:
- the the domain workflow of the Item
- Throws:
ObjectNotFoundExceptionInvalidDataException
-
createCollections
protected CollectionArrayList createCollections(TransactionKey transactionKey) throws InvalidCollectionModification, ObjectNotFoundException, ObjectAlreadyExistsException - Parameters:
transactionKey-- Returns:
- Throws:
InvalidCollectionModificationObjectNotFoundExceptionObjectAlreadyExistsException
-
getItemID
- Specified by:
getItemIDin interfaceDescriptionObject
-
makeDescCollections
public CollectionArrayList makeDescCollections(TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException - Specified by:
makeDescCollectionsin interfaceDescriptionObject- Throws:
InvalidDataExceptionObjectNotFoundException
-
getResourceType
- Specified by:
getResourceTypein interfaceDescriptionObject
-
toString
-
getProperties
Method required to be backward compatible with castor marshalling. check issue #518- Returns:
-