Package org.jbpm.casemgmt.impl.model
Class CaseDefinitionImpl
- java.lang.Object
-
- org.jbpm.casemgmt.impl.model.CaseDefinitionImpl
-
- All Implemented Interfaces:
Serializable,CaseDefinition
public class CaseDefinitionImpl extends Object implements CaseDefinition, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jbpm.casemgmt.api.model.CaseDefinition
DEFAULT_PREFIX
-
-
Constructor Summary
Constructors Constructor Description CaseDefinitionImpl()CaseDefinitionImpl(ProcessAssetDesc processDef, String identifierPrefix, Collection<CaseStage> caseStages, Collection<CaseMilestone> caseMilestones, Collection<CaseRole> caseRoles, Collection<AdHocFragment> adHocFragments, Map<String,List<String>> dataAccessRestrictions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<AdHocFragment>getAdHocFragments()Returns available adhoc fragments that can be signaled.Collection<CaseMilestone>getCaseMilestones()Returns available case milestones for this case.Collection<CaseRole>getCaseRoles()Returns case roles for this case.Collection<CaseStage>getCaseStages()Returns available case stages in this case.Map<String,List<String>>getDataAccessRestrictions()Returns default case file data restrictions.StringgetDeploymentId()Returns deployment idStringgetId()Returns id of the case that shall be used to instantiate new instance of this caseStringgetIdentifierPrefix()Returns case identifier prefix to be used for every instance of this case.StringgetName()Returns case name of this case.Set<String>getProcessVariables()Return the process variablesSet<String>getResolvedIdentifierPrefixes()Returns case prefixes computed of this case instancesStringgetVersion()Returns version of this casebooleanisActive()booleanisIdentifierPrefixSequence()Returns if the prefix is a sequence or notvoidsetIdentifierPrefixSequence(boolean identifierPrefixSequence)StringtoString()
-
-
-
Constructor Detail
-
CaseDefinitionImpl
public CaseDefinitionImpl()
-
CaseDefinitionImpl
public CaseDefinitionImpl(ProcessAssetDesc processDef, String identifierPrefix, Collection<CaseStage> caseStages, Collection<CaseMilestone> caseMilestones, Collection<CaseRole> caseRoles, Collection<AdHocFragment> adHocFragments, Map<String,List<String>> dataAccessRestrictions)
-
-
Method Detail
-
getIdentifierPrefix
public String getIdentifierPrefix()
Description copied from interface:CaseDefinitionReturns case identifier prefix to be used for every instance of this case.- Specified by:
getIdentifierPrefixin interfaceCaseDefinition
-
getCaseStages
public Collection<CaseStage> getCaseStages()
Description copied from interface:CaseDefinitionReturns available case stages in this case.- Specified by:
getCaseStagesin interfaceCaseDefinition
-
getCaseMilestones
public Collection<CaseMilestone> getCaseMilestones()
Description copied from interface:CaseDefinitionReturns available case milestones for this case.- Specified by:
getCaseMilestonesin interfaceCaseDefinition
-
getCaseRoles
public Collection<CaseRole> getCaseRoles()
Description copied from interface:CaseDefinitionReturns case roles for this case.- Specified by:
getCaseRolesin interfaceCaseDefinition
-
getDeploymentId
public String getDeploymentId()
Description copied from interface:CaseDefinitionReturns deployment id- Specified by:
getDeploymentIdin interfaceCaseDefinition
-
isActive
public boolean isActive()
-
getName
public String getName()
Description copied from interface:CaseDefinitionReturns case name of this case.- Specified by:
getNamein interfaceCaseDefinition
-
getId
public String getId()
Description copied from interface:CaseDefinitionReturns id of the case that shall be used to instantiate new instance of this case- Specified by:
getIdin interfaceCaseDefinition
-
getVersion
public String getVersion()
Description copied from interface:CaseDefinitionReturns version of this case- Specified by:
getVersionin interfaceCaseDefinition
-
getProcessVariables
public Set<String> getProcessVariables()
Description copied from interface:CaseDefinitionReturn the process variables- Specified by:
getProcessVariablesin interfaceCaseDefinition
-
getAdHocFragments
public Collection<AdHocFragment> getAdHocFragments()
Description copied from interface:CaseDefinitionReturns available adhoc fragments that can be signaled.- Specified by:
getAdHocFragmentsin interfaceCaseDefinition
-
getDataAccessRestrictions
public Map<String,List<String>> getDataAccessRestrictions()
Description copied from interface:CaseDefinitionReturns default case file data restrictions.- Specified by:
getDataAccessRestrictionsin interfaceCaseDefinition
-
getResolvedIdentifierPrefixes
public Set<String> getResolvedIdentifierPrefixes()
Description copied from interface:CaseDefinitionReturns case prefixes computed of this case instances- Specified by:
getResolvedIdentifierPrefixesin interfaceCaseDefinition
-
setIdentifierPrefixSequence
public void setIdentifierPrefixSequence(boolean identifierPrefixSequence)
-
isIdentifierPrefixSequence
public boolean isIdentifierPrefixSequence()
Description copied from interface:CaseDefinitionReturns if the prefix is a sequence or not- Specified by:
isIdentifierPrefixSequencein interfaceCaseDefinition
-
-