| java.lang.Object org.enhydra.shark.utilities.WMEntityUtilities
WMEntityUtilities | public class WMEntityUtilities (Code) | | The various utilities for WMEntity handling.
author: Sasa Bojanic |
Method Summary | |
public static String | findEAAndGetValue(WMSessionHandle sh, XPDLBrowser xpdlb, WMEntity ent, String eaName) Searchs for the extended attribute for the specified entity with a given name. | public static WMEntity[] | getAllActivities(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity wpOrAs) Retrieves all the Shark entitites representing activities from the given workflow
process or activity set. | public static WMEntity[] | getAllActivitySets(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity wp) Retrieves all the Shark entitites representing activity sets for the given
WorkflowProcess entity. | public static WMEntity[] | getAllApplications(WMSessionHandle shandle, XPDLBrowser xpdlb) Retrieves all the Shark entitites representing applications from all the packages
and their workflow processes. | public static WMEntity[] | getAllApplications(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity pkgOrWp) Retrieves all the Shark entitites representing applications from the given package
or workflow process. | public static WMEntity[] | getAllPackages(WMSessionHandle shandle, XPDLBrowser xpdlb) Retrieves all the Shark entitites representing uploaded XPDL Packages. | public static WMEntity[] | getAllParticipants(WMSessionHandle shandle, XPDLBrowser xpdlb) Retrieves all the Shark entitites representing participants from all the packages
and their workflow processes. | public static WMEntity[] | getAllParticipants(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity pkgOrWp) Retrieves all the Shark entitites representing participants from the given package
or workflow process. | public static WMEntity[] | getAllWorkflowProcesses(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity pkg) Retrieves all the Shark entitites representing workflow processes for the given
Package entity. | public static WMAttribute | getAttribute(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity ent, String attrName) Returns given entity's attribute referenced by the name or null if it does not
exist. | public static String | getAttributeValue(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity ent, String attrName) Returns given entity's attribute value or null if it does not exist. | public static String[][] | getExtAttribNVPairs(WMSessionHandle sh, XPDLBrowser xpdlb, WMEntity ent) Returns (double) string array of all extended attributes for the given entity. | public static Map | getMapFromWMAttributeArray(WMAttribute[] attrs) Converts array of WMAttribute objects to a java Map where keys are WMAttribute names
(variable Ids) and values are attribute/variable values. | public static NameValue[] | getNameValueArrayFromMap(Map context) | public static WMEntity[] | getOverallActivities(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity wp) Retrieves all the Shark entitites representing activities from the given workflow
process and their activity sets. | public static WMEntity | getSubEntity(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity ent, String subEntName) Returns given entity's sub-entity referenced by the name or null if it does not
exist. | public static WMAttribute[] | getWMAttributeArrayFromMap(Map context, Map contextSignature) Converts variable Map to array of WMAttribute objects. |
findEAAndGetValue | public static String findEAAndGetValue(WMSessionHandle sh, XPDLBrowser xpdlb, WMEntity ent, String eaName) throws Exception(Code) | | Searchs for the extended attribute for the specified entity with a given name. If
attribute is found, the extended attribute's value attribute value is returned, and
otherwise null is returned.
|
getExtAttribNVPairs | public static String[][] getExtAttribNVPairs(WMSessionHandle sh, XPDLBrowser xpdlb, WMEntity ent) throws Exception(Code) | | Returns (double) string array of all extended attributes for the given entity. The
first column of each row represents extended attribute's name attribute, and second
column represents its value attribute.
|
getMapFromWMAttributeArray | public static Map getMapFromWMAttributeArray(WMAttribute[] attrs) throws Exception(Code) | | Converts array of WMAttribute objects to a java Map where keys are WMAttribute names
(variable Ids) and values are attribute/variable values.
|
getWMAttributeArrayFromMap | public static WMAttribute[] getWMAttributeArrayFromMap(Map context, Map contextSignature) throws Exception(Code) | | Converts variable Map to array of WMAttribute objects. Map keys become WMAttribute
names and values WMAttribute values. Context signature of the corresponding process
definition is mandatory parameter which can't be null.
|
|
|