public interface WGWorkflow
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ITEM_APPROVEDBY
Item to store past approvers
|
static java.lang.String |
ITEM_ARCHIVINGDATE
Item to store the archiving date
|
static java.lang.String |
ITEM_COMMENT
Item to store workflow comment.
|
static java.lang.String |
ITEM_CURRENTLEVEL
Item to store the current workflow level
|
static java.lang.String |
ITEM_INITIATOR
Item to store the workflow initiator.
|
static java.lang.String |
ITEM_LEVELNAME
Item to store the unique name of the current workflow level
|
static java.lang.String |
ITEM_PUBLISHINGDATE
Item to store the publishing date
|
static java.lang.String |
ITEM_RELEASEDATE
Item to store the release date
|
static java.lang.String |
ITEM_REPLACEMENT_REASON
Item to store replacement reason.
|
static java.lang.String |
ITEM_REVIEWERCOUNT
Item to store the number of reviewers.
|
static java.lang.String |
ITEM_REVIEWERS
Item to store reviewer names
|
static java.lang.String |
ITEM_WFNAME
Item to store workflow name
|
static java.lang.String |
ITEM_WRITEACCESS
Item to store people with write access to the document.
|
static int |
ROLE_ADMINISTRATOR
User is admin reviewer of the workflow
|
static int |
ROLE_APPROVER
User is approver on this workflow level
|
static int |
ROLE_NONE
User has no role on this workflow level
|
Modifier and Type | Method and Description |
---|---|
boolean |
approve(java.lang.String comment)
Approves the content
|
void |
archive(java.lang.String comment)
Archives the content.
|
int |
getWorkflowRole()
Returns the workflow role of the currently logged in user for the current workflow level of the content.
|
void |
initialize()
Called when a content enters workflow and should be initialized for it.
|
boolean |
isApprovableByUser()
Checks all conditions that are necessary for the current user to approve this document.
|
boolean |
publish(java.lang.String comment)
Publishes a draft content so it can enter authorization workflow.
|
void |
reject(java.lang.String comment)
Rejects a content back to draft status.
|
void |
release(java.lang.String comment)
Called when a content is released (i.e. has completely passed the workflow)
|
static final int ROLE_NONE
static final int ROLE_APPROVER
static final int ROLE_ADMINISTRATOR
static final java.lang.String ITEM_APPROVEDBY
static final java.lang.String ITEM_ARCHIVINGDATE
static final java.lang.String ITEM_COMMENT
static final java.lang.String ITEM_CURRENTLEVEL
static final java.lang.String ITEM_INITIATOR
static final java.lang.String ITEM_LEVELNAME
static final java.lang.String ITEM_PUBLISHINGDATE
static final java.lang.String ITEM_RELEASEDATE
static final java.lang.String ITEM_REPLACEMENT_REASON
static final java.lang.String ITEM_REVIEWERCOUNT
static final java.lang.String ITEM_REVIEWERS
static final java.lang.String ITEM_WFNAME
static final java.lang.String ITEM_WRITEACCESS
void initialize() throws WGAPIException
WGAPIException
boolean publish(java.lang.String comment) throws WGAPIException
comment
- Comment on publishingWGAPIException
void reject(java.lang.String comment) throws WGAPIException
comment
- Comment on rejectionWGAPIException
boolean approve(java.lang.String comment) throws WGAPIException
comment
- A comment on the approval operationWGWorkflowException
WGAPIException
void release(java.lang.String comment) throws WGAPIException
comment
- Comment on releasing.WGAPIException
void archive(java.lang.String comment) throws WGAPIException
comment
- Comment on archiving the contentWGAPIException
int getWorkflowRole() throws WGAPIException
WGAPIException
boolean isApprovableByUser() throws WGAPIException
WGAPIException