|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.workflow.WorkflowUtil
public class WorkflowUtil
Util to use the mangoila workflow module. Methods to launch and proceed.
Field Summary | |
---|---|
static openwfe.org.engine.workitem.StringAttribute |
ATTRIBUTE_FALSE
|
static openwfe.org.engine.workitem.StringAttribute |
ATTRIBUTE_TRUE
|
Method Summary | |
---|---|
static void |
assignWorkItemToUser(openwfe.org.engine.workitem.InFlowWorkItem wi,
java.lang.String userName)
assign work item to a user, if userName = "", then assignment for the workItem will be deleted. |
static void |
assignWorkItemToUser(java.lang.String id,
java.lang.String userName)
assign work item to a user, if userName = "", then assignment for the workItem will be deleted. |
static void |
cancel(java.lang.String id,
java.lang.String comment)
|
static java.util.List |
getGroupInbox(java.lang.String GroupName)
return a list of workItem for one group. |
static java.lang.String |
getId(openwfe.org.engine.workitem.InFlowItem wi)
|
static java.lang.String |
getPath(java.lang.String id)
|
static java.util.List |
getRoleInbox(java.lang.String roleName)
return a list of workItem for one role. |
static java.util.List |
getUserInbox(java.lang.String userName)
return a list of workItem for one user. |
static openwfe.org.engine.workitem.InFlowWorkItem |
getWorkItem(java.lang.String id)
Retrieves a workitem by id. |
static java.util.List |
getWorkItems(java.lang.String userName)
get all work items for the user. |
static JCRWorkItemStore |
getWorkItemStore()
|
static void |
launchFlow(openwfe.org.engine.workitem.LaunchItem li)
|
static void |
launchFlow(openwfe.org.engine.workitem.LaunchItem li,
java.lang.String flowName)
Start a flow. |
static void |
launchFlow(java.lang.String repository,
java.lang.String path,
java.lang.String flowName)
Simply launch a flow for the specified node. |
static void |
proceed(openwfe.org.engine.workitem.InFlowWorkItem wi)
Proceed this item. |
static void |
proceed(java.lang.String id)
|
static void |
proceed(java.lang.String id,
java.lang.String action)
|
static void |
proceed(java.lang.String id,
java.lang.String action,
java.lang.String comment)
|
static void |
reject(java.lang.String id,
java.lang.String comment)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final openwfe.org.engine.workitem.StringAttribute ATTRIBUTE_TRUE
public static final openwfe.org.engine.workitem.StringAttribute ATTRIBUTE_FALSE
Method Detail |
---|
public static JCRWorkItemStore getWorkItemStore()
public static void launchFlow(openwfe.org.engine.workitem.LaunchItem li)
public static void launchFlow(java.lang.String repository, java.lang.String path, java.lang.String flowName) throws java.lang.Exception
java.lang.Exception
public static void launchFlow(openwfe.org.engine.workitem.LaunchItem li, java.lang.String flowName) throws FlowDefinitionException
li
- the prepared lunchItemflowName
- the flow to start
FlowDefinitionException
public static void proceed(java.lang.String id)
public static void proceed(java.lang.String id, java.lang.String action)
public static void proceed(java.lang.String id, java.lang.String action, java.lang.String comment)
public static void reject(java.lang.String id, java.lang.String comment)
public static void cancel(java.lang.String id, java.lang.String comment)
public static void proceed(openwfe.org.engine.workitem.InFlowWorkItem wi)
wi
- public static openwfe.org.engine.workitem.InFlowWorkItem getWorkItem(java.lang.String id)
id
- identifier for the workitem as stored in the engine
InFlowWorkItem
corresponding to the workitempublic static java.lang.String getPath(java.lang.String id)
public static java.util.List getWorkItems(java.lang.String userName) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getId(openwfe.org.engine.workitem.InFlowItem wi)
public static void assignWorkItemToUser(java.lang.String id, java.lang.String userName)
public static void assignWorkItemToUser(openwfe.org.engine.workitem.InFlowWorkItem wi, java.lang.String userName)
public static java.util.List getUserInbox(java.lang.String userName) throws java.lang.Exception
java.lang.Exception
public static java.util.List getGroupInbox(java.lang.String GroupName) throws java.lang.Exception
java.lang.Exception
public static java.util.List getRoleInbox(java.lang.String roleName) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |