|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.shark.utilities.WMEntityUtilities
public class WMEntityUtilities
The various utilities for WMEntity handling.
Constructor Summary | |
---|---|
WMEntityUtilities()
|
Method Summary | |
---|---|
static java.lang.String |
findEAAndGetValue(WMSessionHandle sh,
XPDLBrowser xpdlb,
WMEntity ent,
java.lang.String eaName)
Searchs for the extended attribute for the specified entity with a given name. |
static WMEntity[] |
getAllActivities(WMSessionHandle shandle,
XPDLBrowser xpdlb,
WMEntity wpOrAs)
Retrieves all the Shark entitites representing activities from the given workflow process or activity set. |
static WMEntity[] |
getAllActivitySets(WMSessionHandle shandle,
XPDLBrowser xpdlb,
WMEntity wp)
Retrieves all the Shark entitites representing activity sets for the given WorkflowProcess entity. |
static WMEntity[] |
getAllApplications(WMSessionHandle shandle,
XPDLBrowser xpdlb)
Retrieves all the Shark entitites representing applications from all the packages and their workflow processes. |
static WMEntity[] |
getAllApplications(WMSessionHandle shandle,
XPDLBrowser xpdlb,
WMEntity pkgOrWp)
Retrieves all the Shark entitites representing applications from the given package or workflow process. |
static WMEntity[] |
getAllPackages(WMSessionHandle shandle,
XPDLBrowser xpdlb)
Retrieves all the Shark entitites representing uploaded XPDL Packages. |
static WMEntity[] |
getAllParticipants(WMSessionHandle shandle,
XPDLBrowser xpdlb)
Retrieves all the Shark entitites representing participants from all the packages and their workflow processes. |
static WMEntity[] |
getAllParticipants(WMSessionHandle shandle,
XPDLBrowser xpdlb,
WMEntity pkgOrWp)
Retrieves all the Shark entitites representing participants from the given package or workflow process. |
static WMEntity[] |
getAllWorkflowProcesses(WMSessionHandle shandle,
XPDLBrowser xpdlb,
WMEntity pkg)
Retrieves all the Shark entitites representing workflow processes for the given Package entity. |
static WMAttribute |
getAttribute(WMSessionHandle shandle,
XPDLBrowser xpdlb,
WMEntity ent,
java.lang.String attrName)
Returns given entity's attribute referenced by the name or null if it does not exist. |
static java.lang.String |
getAttributeValue(WMSessionHandle shandle,
XPDLBrowser xpdlb,
WMEntity ent,
java.lang.String attrName)
Returns given entity's attribute value or null if it does not exist. |
static java.lang.String[][] |
getExtAttribNVPairs(WMSessionHandle sh,
XPDLBrowser xpdlb,
WMEntity ent)
Returns (double) string array of all extended attributes for the given entity. |
static java.util.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. |
static NameValue[] |
getNameValueArrayFromMap(java.util.Map context)
|
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. |
static WMEntity |
getSubEntity(WMSessionHandle shandle,
XPDLBrowser xpdlb,
WMEntity ent,
java.lang.String subEntName)
Returns given entity's sub-entity referenced by the name or null if it does not exist. |
static WMAttribute[] |
getWMAttributeArrayFromMap(java.util.Map context,
java.util.Map contextSignature)
Converts variable Map to array of WMAttribute objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WMEntityUtilities()
Method Detail |
---|
public static java.lang.String[][] getExtAttribNVPairs(WMSessionHandle sh, XPDLBrowser xpdlb, WMEntity ent) throws java.lang.Exception
java.lang.Exception
public static java.lang.String findEAAndGetValue(WMSessionHandle sh, XPDLBrowser xpdlb, WMEntity ent, java.lang.String eaName) throws java.lang.Exception
java.lang.Exception
public static WMEntity[] getAllPackages(WMSessionHandle shandle, XPDLBrowser xpdlb) throws java.lang.Exception
java.lang.Exception
public static WMEntity[] getAllWorkflowProcesses(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity pkg) throws java.lang.Exception
java.lang.Exception
public static WMEntity[] getAllActivitySets(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity wp) throws java.lang.Exception
java.lang.Exception
public static WMEntity[] getAllParticipants(WMSessionHandle shandle, XPDLBrowser xpdlb) throws java.lang.Exception
java.lang.Exception
public static WMEntity[] getAllParticipants(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity pkgOrWp) throws java.lang.Exception
java.lang.Exception
public static WMEntity[] getAllApplications(WMSessionHandle shandle, XPDLBrowser xpdlb) throws java.lang.Exception
java.lang.Exception
public static WMEntity[] getAllApplications(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity pkgOrWp) throws java.lang.Exception
java.lang.Exception
public static WMEntity[] getOverallActivities(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity wp) throws java.lang.Exception
java.lang.Exception
public static WMEntity[] getAllActivities(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity wpOrAs) throws java.lang.Exception
java.lang.Exception
public static WMEntity getSubEntity(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity ent, java.lang.String subEntName) throws java.lang.Exception
java.lang.Exception
public static WMAttribute getAttribute(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity ent, java.lang.String attrName) throws java.lang.Exception
java.lang.Exception
public static java.lang.String getAttributeValue(WMSessionHandle shandle, XPDLBrowser xpdlb, WMEntity ent, java.lang.String attrName) throws java.lang.Exception
java.lang.Exception
public static java.util.Map getMapFromWMAttributeArray(WMAttribute[] attrs) throws java.lang.Exception
java.lang.Exception
public static WMAttribute[] getWMAttributeArrayFromMap(java.util.Map context, java.util.Map contextSignature) throws java.lang.Exception
java.lang.Exception
public static NameValue[] getNameValueArrayFromMap(java.util.Map context) throws java.lang.Exception
java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |