Filled Workflow Data Structures

These workflow data structures are objects that Enterprise Architect fills.

Workflow Data Structure

Description

Calls

See Also

WorkflowUser

This object provides information about the user currently logged in to the model

It is filled by Enterprise Architect before any function is called by Enterprise Architect; it has the following properties:

  • Username - the username for login to the system (if using Windows Authentication, this matches the Windows username)
  • Firstname - as found in the Security Users dialog
  • Surname - as found in the Security Users dialog
  • Fullname - the combination <Firstname> <Surname> (the form Enterprise Architect uses for Author fields and similar)

This object calls the IsMemberOf(GroupName) function (see below)

Maintain Users

WorkflowContext

This object provides information about the object currently in context

It is filled by Enterprise Architect before any searches except GetWorkflowTasks are run; it has the following properties:

  • MetaType - the type of the current object, either an Enterprise Architect core type or a profile-specified metatype
  • Name - as found in the object Properties dialog
  • Status - as found in the object Properties dialog
  • Phase - as found in the object Properties dialog
  • Version - as found in the object Properties dialog
  • Stereotypes - an array of strings for the stereotypes applied to this object
  • Tags - an array of Tagged Values, providing:
  • Name - the Tagged Value name
  • Value - the Tagged Value value
  • Tests - an array of tests; only filled during an Allow* call after the PreAllow* call has specified that tests are required
     
    Provides the following details, as found in the Testing window:
  • Name
  • Status
  • RunBy
  • CheckedBy
  • TestClass
  • TestType

This object calls the TagValue(TagName) function (see below)

Functions - Create a Search With User Tasks

The Testing Workspace

Function

Action

Return Value

IsMemberOf(GroupName)

Check group membership of the current user

True if the current user is a member of the group with the specified name

TagValue(TagName)

Get the value from a named tag

Returns the value of the first Tagged Value with that name, or an empty string if no Tagged Value with that name exists