Package ch.ivyteam.ivy.application
Interface IProcessModelVersion
- All Superinterfaces:
IActivity
- All Known Subinterfaces:
IWorkflowProcessModelVersion
- API:
- This is a public API.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Activates this and all required process model versions.createLibrary
(String id, QualifiedVersion version) static IProcessModelVersion
current()
Gets the current process model version.void
Deactivates this and all depending process model versions.void
delete()
Sets the release state of this process model version to DELETED.void
Deletes the libraryGets the application this version belongs to.default String
Deprecated, for removal: This API element is subject to removal in a future version.long
getId()
Gets the identifier of the process model versionGets the inherited activity state.default String
Deprecated, for removal: This API element is subject to removal in a future version.Gets the date the version was lastly changeddefault String
Deprecated, for removal: This API element is subject to removal in a future version.Gets the library for which this pmv holds the datadefault String
getName()
Returns the process model version nameGets the process model this version belongs to.org.eclipse.core.resources.IProject
Gets the project that contains all resources of this process model versionGets the path of the project that belongs to this process model version.Gets the name of the project that contains all resources of this proces model versionReturns the release stateGets the timestamp when the process model version was releasedgetRuntimeLog
(RuntimeLogCategory category) Gets the runtime log logger for the process model versionReturns the process model name inclusive the version number s used in urls e.g.int
Returns the version numberboolean
Tests if this process model version is required by other process model versions.static IProcessModelVersion
of
(org.eclipse.core.resources.IProject project) Gets the current process model version of given project.void
release()
Sets the release state of this process model version to released.default void
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface ch.ivyteam.ivy.application.IActivity
activate, deactivate, getActivityOperationState, getActivityState, lock
-
Method Details
-
getName
Returns the process model version name- Returns:
- name of process model version
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getVersionName
String getVersionName()Returns the process model name inclusive the version number s used in urls e.g. "myProject$1"- Returns:
- name of process model version
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getDescription
Deprecated, for removal: This API element is subject to removal in a future version.Returns the description- Returns:
- description
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getVersionNumber
int getVersionNumber()Returns the version number- Returns:
- version number
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getReleaseState
ReleaseState getReleaseState()Returns the release state- Returns:
- release state
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getReleaseTimestamp
Date getReleaseTimestamp()Gets the timestamp when the process model version was released- Returns:
- timestamp or null if version was not yet released
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getLastChangeDate
Date getLastChangeDate()Gets the date the version was lastly changed- Returns:
- last change date
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getLastChangeBy
Deprecated, for removal: This API element is subject to removal in a future version.- API:
- This public API is available in Java.
-
getLastChangeFromHost
Deprecated, for removal: This API element is subject to removal in a future version.- API:
- This public API is available in Java.
-
getProcessModel
IProcessModel getProcessModel()Gets the process model this version belongs to.- Returns:
- process model
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getApplication
IApplication getApplication()Gets the application this version belongs to.- Returns:
- application
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
release
void release()Sets the release state of this process model version to released. The currently process model version in released state is set to release state deprecated. Precondition: The release state must be DEPRECATED, ARCHIVED or PREPARED.- Throws:
PersistencyException
- if db access fails- API:
- This public API is available in Java.
- Security:
- SESSION OWNS ProcessModelVersionRelease PERMISSION OR OWNS ProcessModelVersionRelease@SYSTEM PERMISSION
-
release
Deprecated, for removal: This API element is subject to removal in a future version.Sets the release state of this process model version at the specified date and time to RELEASED. The currently process model version in released state will be set to release state deprecated then. Precondition: The release state must be DEPRECATED, ARCHIVED or PREPARED.- Parameters:
dateTimeOfRelease
- at which date and time should the process model version set to RELEASED state.- Throws:
PersistencyException
- if db access fails- API:
- This public API is available in Java.
-
delete
void delete()Sets the release state of this process model version to DELETED. This method can only be called, if this process model version is no longer required by other PMV's. The later can be checked with a call toisRequired()
. Precondition: The release state must be ARCHIVED or PREPARED and no other PMV's must be dependent on this PMV- Throws:
PersistencyException
IllegalStateException
- if not in state ARCHIVED or PREPARED or if required by other PMVs- API:
- This public API is available in Java.
- Security:
- SESSION OWNS ProcessModelVersionDelete PERMISSION OR OWNS ProcessModelVersionDelete@SYSTEM PERMISSION
-
isRequired
boolean isRequired()Tests if this process model version is required by other process model versions.- Returns:
true
if other PMV's are dependent on this PMV,false
otherwise- API:
- This public API is available in Java.
-
getProjectDirectory
String getProjectDirectory()Gets the path of the project that belongs to this process model version. The path can either locate a directory or a zip.- Returns:
- the project directory
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getId
long getId()Gets the identifier of the process model version- Returns:
- identifier
- API:
- This public API is available in Java.
-
getInheritedActivityState
ActivityState getInheritedActivityState()Gets the inherited activity state. This activity state is computed out of the application, process model and process model version activity state- Returns:
- inherited activity state
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getRuntimeLog
Gets the runtime log logger for the process model version- Parameters:
category
- the runtime log category- Returns:
- the runtime log logger for the category
- API:
- This public API is available in Java.
-
getProject
org.eclipse.core.resources.IProject getProject()Gets the project that contains all resources of this process model version- Returns:
- resource project or null if no project is bound to pmv
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getProjectName
String getProjectName()Gets the name of the project that contains all resources of this proces model version- Returns:
- name of the project
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
getLibrary
ILibrary getLibrary()Gets the library for which this pmv holds the data- Returns:
- library or null if this pmv does not hold data for a library
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
-
createLibrary
- Parameters:
id
- the identifier of the libraryversion
- the version of the library- Returns:
- created library
- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
- Security:
- SESSION OWNS LibraryCreate PERMISSION OR OWNS LibraryCreate@SYSTEM PERMISSION
-
deleteLibrary
void deleteLibrary()Deletes the library- Throws:
PersistencyException
- if persistency access fails- API:
- This public API is available in Java.
- Security:
- SESSION OWNS LibraryDelete PERMISSION OR OWNS LibraryDelete@SYSTEM PERMISSION
-
activateRequiredProcessModelVersions
void activateRequiredProcessModelVersions()Activates this and all required process model versions.- Throws:
PersistencyException
- API:
- This public API is available in Java.
-
deactivateDependentProcessModelVersions
void deactivateDependentProcessModelVersions()Deactivates this and all depending process model versions.- Throws:
PersistencyException
- API:
- This public API is available in Java.
-
current
Gets the current process model version.
Will return null if called out of scope. The scope is set if you call this method from an ivy process or any supported ivy environment. It is not set in non supported ivy environments (e.g. if you start your own threads, etc.).
- Returns:
- current process model version or null if out of scope
- Since:
- 9.1
- API:
- This public API is available in Java.
-
of
Gets the current process model version of given project.- Returns:
- process model version of given project
- Since:
- 9.3
- API:
- This public API is available in Java.
-