wt.clients.workflow.definer
Class SetConfiguration
java.lang.Object
wt.clients.workflow.definer.SetConfiguration
- public class SetConfiguration
- extends Object
SetConfiguration
is an utility to allow the user to change execution
characteristics of an activity or process template in an individual basis.
Call the utility from a DOS window appropriately set with Windchill environment.
The command to call is
java wt.clients.workflow.definer.SetConfiguration
The utility presents two lists of templates and a menu with 6 options.
The first list shows all existing process templates; the second the activity templates of
the selected template. Initially the first process template is the selected. After the
template name the configuration mask (in hexadecimal notation) is shown between parenthesis.
The configuration mask is a 64-bit long number that represents internally the execution
characteristics of the activity or process. Each execution characteristic correspond to a bit.
It is shown to provide feedback to the customer that the configuration has changed.
This configuration is initially set up with values defined in the wt.properties file.
After the lists of templates comes a menu with 6 options. The last two are to read again
the templates and exit. The others allow the userto select a process or activity template
and edit it.
If the edit menu is selected (activity or process), the list of execution properties is displayed.
The initial numbered options (1 to 29) correspond to a execution properties. Please refer to the
properties.html file for the definition of these properties. Not all properties are meaningful
for activities. For example, properties 1 to 6 only apply to processes. They have no effect to
activities. In the same way, there are properties that are relevant only to activities and even
others that are specific to assigned activities (for example, "reassign on overdue").
The change the value of an property simply select it. If it was 'false' it becomes 'true'
and vice-versa. When all modifications are performed, the user can save the template and return,
by selecting option '31.' Partial savings can be done with '30.' '32' returns to the previous
menu without saving the changes since the last save. There is no "undo" otion.
Note: It is required that the process templates be checked out and there is no open process
to be able to change a property. An exception is thrown if these conditions are not met.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
selectedProcessTemplate
private static int selectedProcessTemplate
selectedActivityTemplate
private static int selectedActivityTemplate
processTemplateVector
private static Vector processTemplateVector
activityTemplateVector
private static Vector activityTemplateVector
SetConfiguration
public SetConfiguration()
getProcessTemplates
private static void getProcessTemplates()
showProcessTemplates
private static void showProcessTemplates()
showProcessTemplate
private static void showProcessTemplate(WfProcessTemplate template)
showActivityTemplates
private static void showActivityTemplates()
showActivityTemplate
private static void showActivityTemplate(WfTemplateObject template)
getActivityTemplates
private static void getActivityTemplates()
getActivityTemplates
private static void getActivityTemplates(WfContainerTemplate process,
Vector activities)
main
public static void main(String[] args)
selectActivityTemplate
private static void selectActivityTemplate()
selectProcessTemplate
private static void selectProcessTemplate()
editProcessTemplate
private static void editProcessTemplate()
editActivityTemplate
private static void editActivityTemplate()
configToHexString
private static String configToHexString(WfEventConfiguration event_config)
editEventConfiguration
private static WfTemplateObject editEventConfiguration(WfTemplateObject template)
throws WTException
- Throws:
WTException
getChoice
public static int getChoice(int min,
int max)
numberToString
public static String numberToString(int i)