Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Organization Model Attributes and Methods

Process Manager scripting supports all the organization model methods that are supported in Work Manager scripts.

WorkManager describes the additional functions that are provided to help with work item and organization model scripting.

Attribute / Method | Comments
--- | ---
OrgModel | Accessed via bpm.process.getOrgModel() in process manager scripts / script tasks or bpm.workManager.getOrgModel() in user task Work Manager scripts
ouByGuid (guid:Text) : EntityDetail | Returns the single EntityDetail that describes the Organizational Unit identified by its GUID. If no such Organizational Unit exists, the return value is `null`.
ouByName(name:Text) : List<EntityDetail> | Returns the list of EntityDetails that describe the Organizational Units identified by the given name. If no such named Organizational Units exist, the return value is an empty list.
groupByGuid(guid:Text) : EntityDetail | Returns the single EntityDetail that describes the Group identified by its GUID. If no such Group exists, the return value is `null`.
groupByName(name:Text) : List<EntityDetail> | Returns the list of EntityDetails that describe the Groups identified by the given name. If no such named Groups exist, the return value is an empty list.
resourceByGuid(guid:Text) : EntityDetail | Returns the single EntityDetail that describes the Human Resource identified by its GUID. If no such Human Resource exists, the return value is `null`.
resourceByName(name:Text) : List<EntityDetail> | Returns the list of EntityDetails that describe the Human Resources identified by the given name. If no such named Human Resources exist, the return value is an empty list.
resourceByLdapDN(ldapDN:Text): List<EntityDetail> | Returns the collection of Resources identified by the given LDAP DN, or an empty list if none can be found. Ideally, there should be only one such Resource for a given DN.
positionByGuid(guid:Text) : EntityDetail | Returns the single EntityDetail that describes the Position identified by its GUID. If no such Position exists, the return value is `null`.
positionByName(name:Text) : List<EntityDetail> | Returns the list of EntityDetails that describe the Positions identified by the given name. If no such named Positions exist, the return value is an empty list.
orgByGuid(guid:Text) : EntityDetail | Returns the single EntityDetail that describes the Organization identified by its GUID. If no such Organization exists, the return value is `null`.
orgByName(name:Text) : List<EntityDetail> | Returns the list of EntityDetails that describe the Organizations identified by the given name. If no such named Organizations exist, the return value is an empty list.
EntityDetail |
getEntityType() : Text | Returns the type identifier for this organizational model entity. Example values are: ORGANIZATION ORGANIZATIONAL_UNIT GROUP POSITION RESOURCE
getGroups() : List<EntityDetail> | For Human Resource entities, this returns the EntityDetails that describe the Groups to which the Resource is associated.
getPositions() : List<EntityDetail> | For Human Resource entities, this returns the EntityDetails that describe the Positions to which the Resource is associated.
getName() : Text | The name of the organizational model entity.
getGuid() : Text | The GUID that uniquely identifies the organizational model entity.
getAlias() : Text | For Human Resource entities, this is the Alias of the LDAP Source from which the Resource is derived.
getDn() : Text | For Human Resource entities this is the Distinguishing Name (DN) of the LDAP entry from which the Resource is derived.
getResourceType() : Text | For entities of Entity Type RESOURCE, this identifies the type of Resource: "DURABLE" "CONSUMABLE" "HUMAN" Currently, only HUMAN Resources are supported.
getResources() : List<EntityDetail> | For non-Resource entity types (such as Positions and Groups), this returns the Resource entities associated with that entity. For example, for a Position, it is all the Resources that hold that Position.
getAttributeValue(attrName:Text) :List<Text> | For Resource entity types, this returns the value of the named Resource Attribute held by that Resource entity.
getAttributeType(attrName:Text) : Text | For Resource entity types, this returns the data type of the named Resource Attribute.
getMajorVersion() : Integer | The major version number of the organization model.
getAuthenticatedUser() | This returns the username of the authenticated user in the current login session for the pageflow instance.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.