@Scope(value=CONVERSATION) @Name(value="routingActions") @Install(precedence=10) public class DocumentRoutingActionsBean extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
ROUTE_DOCUMENT_REF |
static String |
SOURCE_DOC_NAME |
Constructor and Description |
---|
DocumentRoutingActionsBean() |
public static final String SOURCE_DOC_NAME
public static final String ROUTE_DOCUMENT_REF
public DocumentRoutingService getDocumentRoutingService()
@Observer(value={"documentChanged","documentSelectionChanged"}) public void resetRelatedRouteDocumentId()
public boolean isRoutable()
public String startRoute() throws ClientException
ClientException
public DocumentRoute getRelatedRoute()
When called on an actual route or route element, the route is returned.
When called on a regular document, the routing service is queried to get the routes which have the current document attached.
When dealing with a regular document, this is DEPRECATED as several graph
routes may be related to the current document (for instance in the case
of sub-workflows). Use getRelatedRoutes()
instead.
public List<DocumentRoute> getRelatedRoutes()
public String cancelRoute() throws ClientException
ClientException
public void saveRouteAsNewInstance()
public void saveSelectedRouteAsNewInstance()
public boolean getCanDuplicateRouteInstance()
public String validateRouteModel() throws ClientException
ClientException
@Factory(value="routeElementsSelectModel", scope=EVENT) public SelectDataModel computeSelectDataModelRouteElements() throws ClientException
ClientException
@Factory(value="relatedRouteElementsSelectModel", scope=EVENT) public SelectDataModel computeSelectDataModelRelatedRouteElements() throws ClientException
ClientException
public SelectDataModel computeSelectDataModelRouteElements(DocumentModel relatedRouteDocumentModel) throws ClientException
ClientException
public boolean hasRelatedRoute()
public String startRouteRelatedToCurrentDocument() throws ClientException
ClientException
public boolean routeRelatedToCurrentDocumentIsRunning() throws ClientException
ClientException
public String getTypeDescription(DocumentRouteTableElement localizable)
public Converter getDocumentModelConverter()
public boolean isStep(DocumentModel doc)
public boolean currentRouteModelIsDraft()
public String removeStep() throws ClientException
ClientException
public boolean isEditableStep(DocumentModel stepDoc) throws ClientException
ClientException
public boolean isEditableRouteElement(DocumentModel stepDoc) throws ClientException
ClientException
@Factory(value="currentRouteLockedByCurrentUser", scope=EVENT) public boolean isCurrentRouteLockedByCurrentUser() throws ClientException
ClientException
public boolean isCurrentRouteLocked() throws ClientException
ClientException
public boolean canUnlockRoute() throws ClientException
ClientException
public boolean canLockRoute() throws ClientException
ClientException
public Map<String,Serializable> getCurrentRouteLockDetails() throws ClientException
ClientException
public String lockCurrentRoute() throws ClientException
ClientException
public String unlockCurrentRoute() throws ClientException
ClientException
public boolean isEmptyFork(DocumentModel forkDoc) throws ClientException
ClientException
public String editStep() throws ClientException
ClientException
public String updateRouteElement() throws ClientException
ClientException
public String goBackToRoute() throws ClientException
ClientException
public String createRouteElement(String typeName) throws ClientException
ClientException
public String moveRouteElement(String direction) throws ClientException
ClientException
public String saveRouteElement() throws ClientException
ClientException
public List<DocumentModel> getOrderedChildren(String docRouteElementId, String type) throws ClientException
ClientException
public DocumentModel getChildWithPosition(DocumentModel docRouteElement, String pos) throws ClientException
ClientException
public String getPositionForChild(DocumentModel docRouteElement, DocumentModel docChild) throws ClientException
ClientException
public String getHiddenSourceDocId()
public void setHiddenSourceDocId(String hiddenSourceDocId)
public String getHiddenDocOrder()
public void setHiddenDocOrder(String hiddenDocOrder)
public String getRelatedRouteModelDocumentId()
public void setRelatedRouteModelDocumentId(String relatedRouteModelDocumentId)
public String getDocWithAttachedRouteId()
public void setDocWithAttachedRouteId(String docWithAttachedRouteId)
@Observer(value={"workflowProcessEnded","workflowTaskCompleted","workflowProcessCanceled","workflowTaskRejected"}, create=false) public void resetCache()
public DocumentModel getRouteModel(String routeId) throws ClientException
ClientException
public DocumentModel getRouteInstanceFor(Task task) throws ClientException
ClientException
public List<DocumentModel> getFilteredRouteModels() throws ClientException
ClientException
public List<Task> getCurrentRouteAllTasks() throws ClientException
ClientException
public List<Task> getCurrentRouteCurrentUserTasks() throws ClientException
ClientException
public String getCurrentWorkflowInitiator() throws ClientException
ClientException
public boolean isCurrentRouteGraph() throws ClientException
ClientException
public boolean isRouteGraph(DocumentRoute route) throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.