Using a Property Other Than Usr_StarFlowStatus

Usr_StarFlowStatus (with Workflow Status as its usual display name) is the property the workflow engine expects to find as the workflow control property for any item. This is easy to change. To use a property other than Usr_StarFlowStatus:

  1. In JBuilder, open the APEproject.jpx file for the project (for example, LinkTypeChangeRequest.jpx or ChangeRequest.jpx). This may be in one of the Samples folders or perhaps you have the source code for this java project in the working folder for an appropriate StarTeam folder in the StarTeam project named StarFlow Extensions.
  2. Double-click the item_typeLauncher.java file to open it for editing.
  3. After the file opens, search for :

     Usr_StarFlowStatus:
    public String getWorkflowStatusPropertyName() {
    return "Usr_StarFlowStatus";
  4. Replace Usr_StarFlowStatus with the internal name for the workflow control property to be used with this item_type. For example, you might be using an existing field such as Status property field for Topics or a Usr_MyStatus for any item type. The only field that should not be used is the Status property field for change requests as the application’s built-in workflow involves the use of that property field.
  5. Save the file.
  6. Recompile the .jar (for example, LinkTypeChangeRequest.jar or ChangeRequest.jar).
  7. Check the .jar file into the application’s StarFlow Extensions project. Use an appropriate folder.

    For example, if this APE will be used by a specific project view, you might check it into the StarFlow Extensions\Projects\Big Project\ Big Project\Web Stuff folder. In this example, there is a project named Big Project with a root view name Big Project and a child view named Web Stuff.

Back to top