Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
WCBasicAdminGuide.pdf
Скачиваний:
71
Добавлен:
23.03.2015
Размер:
3.31 Mб
Скачать

Note

If you select Signing Required, you are prompted for authentication in order to start the activity.

Best Practices

The following sections contain best practices for workflow templates and processes.

Access Control and Workflow Templates

Access control is generally defined, using the Policy Administration utility, for the domain to which the object belongs. However, it is possible to specifically add additional access policies to a given Windchill object (such as a specific WTPart or WTDocument). For example, you can use ad hoc access policies inside a workflow, or you can define object-level access policies using the Manage Security action.

If you are likely to have an extremely high number of running workflow activities referencing the same object, make sure that you grant ad hoc access only as needed. Use policy access control where appropriate.

For more information, see the Access Control information in the PTC Windchill Specialized Administration Guide.

Understanding Workflow

389

Access Control and Process Nodes

Access control permissions are not checked for expressions in a workflow activity or robot node. You can use the Windchill API if your process requires that access control permissions are enforced within expression execution. The following is an example of the appropriate code:

boolean oldAccessEnforcedSetting = SessionServerHelper.manager.setAccessEnforced(true);

< workflow expression code >

}finally{

SessionServerHelper.manager.setAccessEnforced(oldAccessEnforcedSetting);

// At the end of your code, reset access check setting to its initial value

}

Caution

You must ensure that the access check setting is reset to its original value at the end of the code.

Using a Single Workflow in a Life Cycle Having Multiple States

Duplicate tasks get started when a Set State robot is used along with a loop link to the task related to the new state.

In order to avoid this situation, create an initial dummy life cycle phase that is associated with the workflow and that represents a state that is never returned to in a loop or in a set state robot.

Note

When you assign a workflow template to a life cycle template, you see a list of valid workflows. The list of valid workflow templates includes the ones defined in the given application context, plus those defined in the ancestor organization and site contexts. Workflow templates defined in a subcontext override and filter out the workflow templates defined in parent contexts having the same name.

390

PTC Windchill® Basic Administration Guide

Workflow Process Support in Windchill ProjectLink

The following table shows the workflow process support in Windchill ProjectLink.

Feature

Support

Notes

 

 

 

 

Level

 

 

 

 

Use of Workflow

Partial

Site and organization administrators can

 

Template Administration

 

see all templates in the context from

 

interface

 

which they launched the Workflow

 

 

 

Template Administration utility and those

 

 

inherited from ancestor contexts. In

 

 

 

Windchill ProjectLink, you can launch the

 

 

Workflow Template Administration utility

 

 

from the Utilities page of the

 

 

 

Organizations

and the Site contexts.

 

 

The Workflow Template Administration

 

 

 

utility is not available in the Projects

or

 

 

Programs

contexts to administrators of

 

 

these contexts. From the Organization

 

 

 

context, you will see the templates from

 

 

 

the site and the organization context from

 

 

which the utility was launched. From the

 

 

organization context, the site templates

 

 

 

can only be viewed or saved.

 

Use of workflow process

Full

The full capabilities of the process editor

editor interface

 

are exposed. There is no bootstrap

 

 

 

capability with Windchill ProjectLink;

 

 

 

therefore, a high bandwidth connection to

 

 

the server is necessary to use the

 

 

 

workflow process editor.

 

Default task choices

Partial

Life cycle and default task types are

 

 

 

supported. Change tasks are not

 

 

 

supported.

 

 

 

E-mail task delivery

Full

All tasks can be delivered by email, in

 

 

 

addition to being added to the user’s Tasks

 

None

table.

 

 

 

Ad hoc task support

There is no support for ad hoc workflow

 

 

None

tasks.

 

 

 

Custom task form used

Windchill ProjectLink task forms are

 

and definition

 

rendered as JSP pages. Custom task forms

 

 

can be created using Adobe Forms

 

 

 

software. For more information, see Using

 

 

Task Form Templates in a Workflow on

 

 

 

page 385

 

 

.

Understanding Workflow

391

Feature

Support

Notes

 

Level

 

Electronic signature

Full

Windchill ProjectLink requires additional

support

 

authentication, as specified by the

 

 

signature engine, for tasks generated from

 

 

activities that require signing.

Activity-based access

Partial

Activity-based access control can be used

control

 

for the primary business object only.

 

 

Access right can only be added to the

 

 

rights currently defined for the object.

 

 

Access rights cannot be removed.

Variable support

Partial

All standard variables are supported.

 

 

Variables that represent Windchill classes

 

 

can be defined and used, but will not be

 

 

rendered in the task.

Routing

Full

Exclusive and nonexclusive manual

 

 

routing is supported. Automatic routing is

 

 

supported via expressions. Routing

 

 

selections are displayed only for required

 

 

roles.

Robots

Full

Notification, set state, timer, execution,

 

 

and expression robots are all supported.

Connectors

Full

Start, stop, and, or, and threshold

 

 

connectors are all supported.

Process references

Full

Only processes defined for the

 

 

organization associated with the logged-in

 

 

user may be referenced.

Blocks

Full

A block represents a group of activities,

 

 

connectors, or robots. Reduce process

 

 

complexity by creating blocks of activities

 

 

that can be expanded when needed.

Transition conditions

Full

Transition is movement from one internal

 

 

state to another within a workflow

 

 

template. This movement reflects a change

 

 

in the workflow status. Conditions are

 

 

defined on the Transitions tab for an

 

 

activity.

Roles

Partial

Roles that are referenced must be satisfied

 

 

in the project or program instance

 

 

associated with the process instance.

Voting

Full

Voting support is limited to Review and

 

 

Promote activity types.

Variable substitution

Full

Variable support is limited. Variables

392

PTC Windchill® Basic Administration Guide

Feature

Support

Notes

 

Level

representing Windchill classes can be

 

 

 

 

defined and used, but will not be displayed

 

 

in the task pages.

Import/export

Partial

Process templates can be exported to

 

 

XML format. There is no organization

 

 

association with the imported or exported

 

 

template so the workflow import/export

 

 

folder should be cleared between uses.

Process initiation

Partial

Within Windchill ProjectLink, a workflow

 

 

process cannot be explicitly initiated by an

 

 

end user. Aworkflow process may be

 

 

instantiated indirectly only by creating a

 

 

life cycle managed object or by initiating a

 

 

routing action. Through a customization, it

 

 

is also possible that a workflow process

 

 

could be initiated within a project.

Participation

Partial

Participation in a downstream task can be

identification

 

accomplished through the use of user and

 

 

group variables that are satisfied by an

 

 

assignee in a task form. You can add or

 

 

remove assignees from a running process

 

 

by updating the route participants. The

 

 

change applies to unstarted started

 

 

activities, it will not affect tasks that are

 

 

currently running. There is no support for

 

 

the setup participants capability.

Content holder access

None

There is no workflow content holder

 

 

exposed in a workflow task.

Ad hoc tasks

None

Ad hoc tasks cannot be created from a

 

 

parent task.

Access to primary

Partial

A link to the subject is provided.

business object

 

 

Adding comments

Partial

A link to the subject’s discussion forum is

 

 

available in the task form. Comments can

 

 

also be added to a string variable.

Task actions

Partial

A user can open and reassign tasks, but

 

 

there is no capability to delegate them or

 

 

to access a user calendar. When tasks are

 

 

reassigned, the assignee pool is the project

 

 

or program team.

Tasks customization

None

The Tasks tables support multiple

 

 

predefined views. There is no capability to

Understanding Workflow

393

Feature

Support

Notes

 

Level

further define custom views.

 

 

Project or Program tasks

Full

There is a specific view of all tasks in a

view

 

project or program.

Access to the Workflow

Partial

There is no access to the process manager

Process Manager

 

for a general workflow user.

Access to workflow

Partial

Windchill ProjectLink exposes no explicit

participation or execution

 

access to workflow participation or history

history

 

information for non-administrators.

 

 

However, individual task forms can

 

 

accumulate information regarding

 

 

participation and disposition. Comment

 

 

history can be captured in a discussion

 

 

forum associated with the primary

 

 

business object.

Local search support for

None

There is no support for searching running

process information

 

or completed processes.

Workflow process

Partial

 

management

 

 

394

PTC Windchill® Basic Administration Guide

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]