13.4.11. Editing Process Attributes

Engineering Knowledge Manager

User's Guide | Chapter 13: Defining Process Templates in EKM Studio | 13.4. Defining Process Templates in EKM Studio |

13.4.10. Correcting an Invalid Layout |  | 13.5. Using Macros in Process Templates
Prev |  | Next

### 13.4.11. Editing Process Attributes

You can define the global parameters of a process in the Edit Process Template Attributes dialog box.

To edit process template attributes:

1. Select Edit > Process Template Attributes. The Edit Process Template Attributes dialog box appears:

   Figure 13.26: Edit Process Template Attributes Dialog Box

2. Edit the process attributes (described below).

   Name

     Name of the process.

   Description

     An optional description of the process.

   Height

     For templates that contain a custom dialog node, this is the height of the custom dialog box that is displayed when the node is reached during process execution.

   Width

     The width of the custom dialog box displayed when a process contains a custom dialog node.

     The Height and Width settings can be ignored if the template does not contain a custom dialog node.

   Language

     The scripting language that will be used for macros and expressions. Choices are Python and BeanShell.

     Python is a powerful and easy-to-use scripting language that is very popular. EKM uses Jython 2.7 to handle Python syntax. To learn more about Jython, refer to http://www.jython.org/index.html. To learn more about Python, refer to http://www.python.org. Jython 2.7 allows the use of Python 2.7 language features. In addition, you can use any Java classes offered by JDK 1.8.

     BeanShell is a scripting language that can execute code written in standard Java syntax while providing scripting conveniences such as loose types. For more information on BeanShell and to see its detailed documentation, refer to http://www.beanshell.org. With BeanShell you have full access to all classes provided by Java’s JDK. EKM uses JDK 1.8, so you can use any of its classes in macros defined using BeanShell.

     If you change the Language setting, you will be prompted to edit any existing macros and expressions after you click OK in the Edit Process Template Attributes dialog:

     All expressions and scripts in the process template should be consistent with the Language specified in your process attributes. If you have not defined any macros or expressions in the current process template, you can disregard this warning message.

   Required variables

     Variables that you must specify when you create a process template. You are prompted to add these variables when you create a new process template in a connected EKM repository. The list of available variables for your process will be listed under All variables. Select each one that you want and click Add>> to add them to the Required variables list on the right. To remove a variable from the Required variables list, select it and then click Remove.

     Note: For a process with a single custom node, a required variable is not a valid input.

   Validation

     Validates the required variables. You can insert an expression for each required variable by clicking Insert and then edit it using the Edit Expressions dialog box that opens when you click Edit. See Using Expressions in Process Elements for syntax you can use to define process expressions.

   Select assignee using custom ui

     Allows assignees to be selected using a custom application instead of a standard dropdown. If you enable this option, you must enter the path to the custom application in the Specify location of custom application field.

     When a custom application is specified, an edit icon will be displayed in the Assignee column for each task in the process view:

     To see an example of this functionality, use the sample process templates, custom interface, script and resources that are available in the following folder:

     `EKM_HOME\examples\process-templates\custom-ui-for-setting-assignee`

     For information on creating custom applications in EKM, refer to Creating a Custom Application.

3. When you are finished editing attributes, click OK.

Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Prev | Up / Contents | Next

Release 18.2 - © ANSYS, Inc. All rights reserved.