Please note : This help page is for an older version of Enteprise Archtiect. The latest help can be found here.

Functions You Call

These are functions that Enterprise Architect provides for you to call.

Function

Action

Return Value

See also

NewSearch(name, group, guid, taskcount)

Create a new search object to be included in WorkflowSearches.

Initialize each member.

 

The created search

Workflow Data Structures You Fill

NewTask(name, conditioncount)

Create a new task object to be included in a search.

Initialize each member.

 

The created task

 

NewCondition(column, operator, value)

Create a new condition object to be included in a task.

Initialize each member.

 

The created condition

 

SetLastError(message, outputMethod)

Called on user input to the following element properties:

Status
Phase
Version, and
Tagged Values
 

It logs and/or reports the provided message to the user. It can be called within the functions:

AllowPhaseUpdate
AllowStatusUpdate
AllowTagUpdate
AllowVersionUpdate
preAllowPhaseUpdate
preAllowStatusUpdate
preAllowTagUpdate
preAllowVersionUpdate

 

For example:

 

public function AllowPhaseUpdate( OldValue, NewValue )

 

   AllowPhaseUpdate = false

 

   SetLastError "No updating to phase allowed", "messagebox"

 

end function

 

Parameters:

message: Text

outputMethod can be "messagebox", "statusbar" or "outputwindow".

outputmethod is case sensitive.

 

The message