|
||||||||||
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,
String userName)
assign work item to a user, if userName = "", then assignment for the workItem will be deleted. |
static void |
assignWorkItemToUser(String id,
String userName)
assign work item to a user, if userName = "", then assignment for the workItem will be deleted. |
static void |
cancel(String id,
String comment)
|
static List |
getGroupInbox(String GroupName)
return a list of workItem for one group. |
static String |
getId(openwfe.org.engine.workitem.InFlowItem wi)
|
static String |
getPath(String id)
|
static List |
getRoleInbox(String roleName)
return a list of workItem for one role. |
static List |
getUserInbox(String userName)
return a list of workItem for one user. |
static openwfe.org.engine.workitem.InFlowWorkItem |
getWorkItem(String id)
Retrieves a workitem by id. |
static List |
getWorkItems(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,
String flowName)
Start a flow. |
static void |
launchFlow(String repository,
String path,
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(String id)
|
static void |
proceed(String id,
String action)
|
static void |
proceed(String id,
String action,
String comment)
|
static void |
reject(String id,
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(String repository, String path, String flowName) throws Exception
Exception
public static void launchFlow(openwfe.org.engine.workitem.LaunchItem li, String flowName) throws FlowDefinitionException
li
- the prepared lunchItemflowName
- the flow to start
FlowDefinitionException
public static void proceed(String id)
public static void proceed(String id, String action)
public static void proceed(String id, String action, String comment)
public static void reject(String id, String comment)
public static void cancel(String id, String comment)
public static void proceed(openwfe.org.engine.workitem.InFlowWorkItem wi)
wi
- public static openwfe.org.engine.workitem.InFlowWorkItem getWorkItem(String id)
id
- identifier for the workitem as stored in the engine
InFlowWorkItem
corresponding to the workitempublic static String getPath(String id)
public static List getWorkItems(String userName) throws Exception
Exception
public static String getId(openwfe.org.engine.workitem.InFlowItem wi)
public static void assignWorkItemToUser(String id, String userName)
public static void assignWorkItemToUser(openwfe.org.engine.workitem.InFlowWorkItem wi, String userName)
public static List getUserInbox(String userName) throws Exception
Exception
public static List getGroupInbox(String GroupName) throws Exception
Exception
public static List getRoleInbox(String roleName) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |