8-2-SP2 Administering Process Engine
8-2-SP2 Administering Process Engine
Version 8.2
October 2011
Copyright
This document applies to webMethods Process Engine Version 8.2 and to all subsequent releases.
Specifications contained herein are subject to change and these changes will be reported in subsequent release notes or new editions.
Copyright 20052011 Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, United States of America, and/or
their licensors.
Detailed information on trademarks and patents owned by Software AG and/or its subsidiaries is located at
http://documentation.softwareag.com/legal/.
Use of this software is subject to adherence to Software AG's licensing conditions and terms. These terms are part of the product
documentation, located at http://documentation.softwareag.com/legal/ and/or in the root installation directory of the licensed product(s).
This software may include portions of third-party products. For third-party copyright notices and license terms, please refer to License
Texts, Copyright Notices and Disclaimers of Third-Party Products. This document is part of the product documentation, located at
http://documentation.softwareag.com/legal/ and/or in the root installation directory of the licensed product(s).
Table of Contents
About this Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Deprecation of webMethods Developer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Document Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Documentation Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Online Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
5
5
6
6
1. Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The Process Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Tuning Process Engine Performance and Quality of Service . . . . . . . . . . . . . . . . . . . . . . .
Storing Process Status Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Logging Process Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Working with Built-in Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Viewing and Controlling Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9
10
10
10
11
11
11
13
14
14
15
16
16
17
18
18
23
25
26
26
27
27
28
32
33
34
35
37
39
40
40
43
pub.prt.admin:changeProcessStatus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.admin:deleteProcess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.admin:resumeProcesses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.admin:scanPackage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.admin:suspendProcesses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.correlate:deleteCorrelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.correlate:establishCorrelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.correlate:lookupCorrelation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt:ErrorService . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.ExceptionTransitionInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.jms:send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.log:logActivityMessages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.log:logCustomID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt:ProcessData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.SubprocessModel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.timer.process:cancel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.timer.process:create . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.timer.process:createWithBusinessCalendar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.timer.process:createWithDate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.timer.process:get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.tn:deleteByCID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.tn:getPIDforCID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.tn:getRoleInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.tn:handleBizDoc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.tn:mapCIDtoPID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.tn:MatchBizDoc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
pub.prt.tn:RoleInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
44
46
47
48
50
51
52
53
54
54
54
56
57
57
58
59
60
61
62
62
62
63
64
64
65
66
67
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Document Conventions
Convention
Description
Bold
Narrowfont
UPPERCASE
Italic
Monospace font
{}
Indicates a set of choices from which you must choose one. Type
only the information inside the curly braces. Do not type the { }
symbols.
[]
Indicates one or more options. Type only the information inside the
square brackets. Do not type the [ ] symbols.
...
Indicates that you can type multiple options of the same type. Type
only the information. Do not type the ellipsis (...).
Documentation Installation
You can download the product documentation using the Software AG Installer.
Depending on the release of the webMethods product suite, the location of the
downloaded documentation will be as shown in the table below.
For webMethods...
6.x
7.x
8.x
Online Information
You can find additional information about Software AG products at the locations listed
below.
Note: The Empower Product Support Web site and the Software AG Documentation Web
site replace Software AG ServLine24 and webMethods Advantage.
If you want to...
Go to...
http://documentation.softwareag.com
https://empower.softwareag.com
Go to...
http://communities.softwareag.com/
Concepts
10
10
10
11
11
11
1 Concepts
10
1 Concepts
processsuch as start time, end time, and whether is it active or disablein the selected
location.
For more information about setting the Volatile Tracking option, see Setting Quality of
Service for a Process on page 18. For more information about how the Process Engine
maintains status data, see the topic Tracking Process Status in the webMethods BPM
Process Development Help.
11
1 Concepts
working with webMethods Monitor, see the PDF publication Monitoring BPM, Services,
and Documents with BAM: webMethods Monitor Users Guide. For more information about
working with My webMethods, see the PDF publication Working with My webMethods.
12
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14
Triggers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14
15
16
16
13
Overview
When you generate a process model, Designer creates a package on each of the
Integration Servers that are defined as the logical servers used within the process model
steps. The package is stored in the Integration Server_directory\packages directory under
the name package_name, where package_name is the project name or the user-defined
package name that is generated from the name you specified in Designer.
Inside the package, Designer creates several items, including:
Triggers
Services representing each step in the process model
Process description files
This chapter describes how these items relate to process execution, process tracking, and
the Process Engine.
Note: The Software AG Designer online help contains additional information on triggers
and JMS connection aliases.
Triggers
The Process Engine works with two different types of triggers: webMethods Broker
triggers and JMS triggers. JMS triggers allow third-party JMS clients to send messages to
trigger processes while webMethods Broker triggers require publishing of documents
using the Integration Server publish/subscribe services or the webMethods Broker APIs.
When a process model version is generated, the package created by Designer contains the
following triggers for each logical server to which steps are assigned in the process model
version:
Designer generates subscriptionTriggers to manage external input document
subscriptions for all versions of the process model. In other words, there is exactly one
subscription trigger for each version of the process model for each logical server
defined to the process model.
Note that the subscription document structure must be the same for each version of
the process model (unless the model was generated to use JMS triggers). If you
change the subscription document for a new process model version, your
subscriptions will fail to work correctly for older versions of the process model
(unless JMS triggers are used).
Subscription triggers are also used to define retry behavior for intermediate receive
steps; for more information, see the topic Correlation Behavior with Non-starting
Receive Tasks in the webMethods BPM Process Development Help.
14
15
16
Overview of Tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
18
18
23
17
Overview of Tuning
You can optimize, or tune, Process Engine performance and quality of service for
processes by editing process model properties. These properties apply to all Process
Engines on Integration Servers that will run steps in the process model.
You set process properties in the following locations:
In Software AG Designer (at design time); these settings include:
Local optimization
Express pipeline
Volatile tracking
Transition logging
Logging level
Enabling resubmissions.
Note: For processes that reference other processes, the Process Engine uses the process
property settings for the process, and the referenced process property settings for the
referenced process.
On the Process Developer perspective, open the process you want to work with.
18
Quality of Service
Setting
Optimize Locally
Description
Execute adjacent steps on the same Integration Server without
publishing transition documents. Enabled by default.
Select Optimize Locally to specify that you want to use a pipeline
to pass data from step to step on the local server; and publish a
process transition document only when there is a transition to a
step running on another server or if a process splits into more
than one branch.
Clear this check box to always publish a process transition
document when transitioning to any step, no matter where it is
located. No pipeline is used.
You can select Optimize Locally to decrease document message traffic
and improve performance. However, if a step fails, the process can
recover automatically only at the step that published the most
recent process transition document, and that step might not be the
step of failure. For example:
Suppose process step 1 runs on Server A and process steps 2, 3, and
4 run on Server B. When you are optimizing locally and step 3 fails,
the most recently published process transition document was
produced by step 1, because the Process Engine did not publish a
process transition document for step 2 or 3. The process, therefore,
recovers automatically at step 1 (that is, step 2 will be run again).
When you do not optimize locally, every step publishes a process
transition document, so a process can automatically recover at the
step it completed last. In this case, the process would recover at step
3.
The biggest risk of optimizing locally is duplication of work. For
example, you might not want to risk duplicating work for processes
that store, synchronize, or correlate data. For processes that do less
significant work, the performance benefits might outweigh the
risks.
When a referenced process is invoked and Optimize Locally is
selected, the Process Engine will attempt to locally invoke a
referenced process, with the following conditions applied:
The referenced process exists on the same Process Engine node
as the parent step
The referenced process has no subscription filter
Subscription filters are enforced at the trigger level. If there is a filter
on a referenced process, the Process Engine will ignore the Optimize
Locally setting and publish the transition document.
When Optimize Locally is selected and data is returned from the
referenced process to the parent, the parent step must be running on
the same Process Engine node as the referenced process for
successful data transfer
19
Express Pipeline
20
Volatile Transition
Documents
Volatile Tracking
21
Sets the minimum logging threshold for this process at run time.
Important! When a user configures process logging in My
webMethods, the user will not be able to specify a logging level that
is numerically lower than the value you specify here. For example, if
you specify a level of 2-Errors Only here, the user will not be able to
specify a logging level of 1-None in My webMethods; the users
choices would be limited to logging levels 2, 3, 4, and 5. If you will
be feeding process data to webMethods Optimize, you must set the
minimum logging level to 5-Process and all steps (default). For more
information on process logging, including detailed descriptions of
logging levels, see Monitoring BPM, Services, and Documents with
BAM: webMethods Monitor Users Guide.
Select one of the following values from the drop-down list:
1-None
2-Errors only
3-Process only
4-Process and start events
5-Process and all events and activities(default)
6-Process and all events, activities, and looped activities
22
23
24
26
26
27
27
28
34
35
37
25
Log on to the Integration Server Administrator and click Packages > Management.
Locate the WmPRT package and click the Home Page icon
Note: You can click the Logout link at the top of the page to log out of the Process Engine
home page. You will still be logged into the Integration Server Administrator. The Logout
link terminates only the session for the Process Engine home page.
Description
Dashboard
Startup
Messages
Settings
Environment
Processes
26
Display the Process Engine home page as described in Accessing the Process Engine
Home Page on page 26.
Click Dashboard.
This icon
indicates...
27
Display the Process Engine home page as described in Accessing the Process Engine
Home Page on page 26.
Display the Process Engine home page as described in Accessing the Process Engine
Home Page on page 26.
Click Settings.
On the Settings page, click the Edit Process Engine Settings link.
On the Process Engine > Settings > Edit page, the following settings are available for
modifications:
Property
Description
Database
Operation Retry
Limit
Database
Operation Retry
Interval
28
Property
Description
Cleanup Service
Execution Interval
Completed
Process
Expiration
Failed Process
Expiration
Specifies how long the Process Engine pauses after a process fails
before cleaning up database artifacts.
The default value is 3600 seconds.
Optimize Broker
URL
29
Property
Description
Duplicate Event
Detection
Cache Cleanup
Interval
30
Property
Description
Maximum Cache
Buffer Size
External Cluster
31
Property
Description
Use Cluster
Cache
Click Submit, then reload the WmPRT package or restart Integration Server.
Note: If at any time you need to revert to the default configuration settings, edit the
Process Engine configuration properties and click Default.
Important! After changing the Exactly Once/Detect Duplicates property for a model's
trigger (either subscription or transition), the WmPRT package must be reloaded. To
reload the package, open the webMethods Integration Server Administrator, open
Packages > Management, and click the WmPRT reload icon in the Reload column.
32
Additionally, to use the duplicate detection feature, the process model versions must
meet these requirements:
A UUID, a unique identifier that identifies the published document, must be present
in the document being published (for example: all documents published by
webMethods Broker contain a UUID).
All publishable documents, including process transition documents, must be nonvolatile documents.
The process must have volatile tracking disabled and volatile transition documents
disabled.
If you want to be able to resubmit a failed process, the model must log all steps and
enable each step for resubmission.
Note: When a process has the Optimize Locally option enabled, duplicate event detection is
limited to the last unacknowledged document.
33
Display the Process Engine home page as described in Accessing the Process Engine
Home Page on page 26.
Description
General
34
Section
Description
Loggers
JDBC Connections
Control Triggers
The Control Triggers section lists triggers that Process Engine uses
across all process instances and indicates if the trigger is enabled.
For additional information about these triggers and to modify
them, use these webMethods Integration Server Administrator
pages:
For webMethods Broker triggers: Settings > Messaging >
Broker/Local Trigger Management
For JMS triggers: Settings > Messaging > JMS Management
35
View a list of triggers associated with each process model version and whether a
trigger is enabled or disabled.
View information about My webMethods Server e-form listeners for process versions
for which listeners are configured. Listeners for webMethods Content Service
Platform are not available here and must be monitored from within the CSP server.
To view process model information
1
Display the Process Engine home page as described in Accessing the Process Engine
Home Page on page 26.
Click Processes.
In the left pane of the Process Engine > Processes page, click the process model you
want to examine.
Information about the versions of the selected process model appears in the right
pane. The Enabled column displays Yes to indicate an enabled version.
To view details of a specific process model version, click the name of version.
The Details page provides the following information:
The Process Settings section displays settings for the selected process model
version, for example:
For more information about many of these settings, see Setting Quality of Service
for a Process. The steps listed in Resubmission StepID(s) list are the steps that have
been enabled for resubmission.
36
The Triggers section provides a list of triggers associated with the process model
version and if each trigger is enabled or disabled.
The Process Engine displays a status icon to indicate whether a listener is running
( status icon) or stopped ( status icon). If a listener is stopped, you can restart it
by clicking the Restart link. The Process Engine displays messages about the
outcome of the restart at the top of the page.
5
Click Return to Process Details to leave the e-form listener details page.
37
38
40
40
39
pub.prt:CorrelationService
pub.prt.admin:changeProcessStatus
pub.prt.admin:deleteProcess
pub.prt.admin:resumeProcesses
pub.prt.admin:scanPackage
pub.prt.admin:suspendProcesses
pub.prt.correlate:deleteCorrelation
40
Element
pub.prt.correlate:establishCorrelation
pub.prt.correlate:lookupCorrelation
pub.prt:ErrorService
pub.prt.ExceptionTransitionInfo
pub.prt.jms:send
pub.prt.log:logActivityMessages
pub.prt.log:logCustomID
pub.prt:ProcessData
41
Element
pub.prt.SubprocessModel
pub.prt.timer.process:cancel
pub.prt.timer.process:create
pub.prt.timer.process:createWithBusinessCalendar
pub.prt.timer.process:createWithDate
pub.prt.timer.process:get
pub.prt.tn:deleteByCID
pub.prt.tn:getPIDforCID
pub.prt.tn:getRoleInfo
pub.prt.tn:handleBizDoc
pub.prt.tn:mapCIDtoPID
pub.prt.tn:MatchBizDoc
pub.prt.tn:RoleInfo
42
pub.prt:CorrelationService
WmPRT. Specification that describes the inputs and outputs required for a correlation
service.
A correlation service is associated with one or more receive steps in a process model
version. The Process Engine uses the correlation service associated with a step to route IS
documents published as inputs into that step to a running instance of the model, where
appropriate. For more about correlation services, see "Correlation Services" in the
webMethods BPM Process Development Help.
Input Parameters
ProcessModelID
ProcessModelVersion
LogicalServer
String Name of the logical server that is associated with the step
in the process model version with which this invocation of the
correlation service is involved. In other words, the name of the
logical server on which this correlation service is running.
Because a single correlation service can be used with steps that
execute on different servers, you can use LogicalServer to identify
a specific server at run time.
ProcessStepID
String ID of the step in the process model version with which this
invocation of the correlation service is involved (for example,
N3).
Because a single correlation service can be associated with
multiple steps in a process model version, you can use
ProcessStepID to identify the specific step at run time.
DocumentName
DocumentType
Document
43
Output Parameters
ProcessCorrelationID
CorrelateAsTN
pub.prt.admin:changeProcessStatus
WmPRT. Changes the process status by broadcasting a request to all servers participating
in the process.
Input Parameters
ProcessInstanceID
ProcessIteration
ProcessModelID
ProcessModelVersion
Action
44
EscalateFailure
Output Parameters
None.
Note: If this service runs to completion, it means that the request for a status change has
been made. The servers involved handle these requests asynchronously. You can track the
status of a process using webMethods Monitor.
Usage Notes
The most typical use of this service is to "fail" a process after handling some unexpected
error.
The EscalateFailure parameter enables the developer to determine if a referenced process
is recoverable by resubmittal after an error occurs. Prior to version 8.0 SP1, the failure of a
referenced process was always escalated to the parent process. In this case, the parent
process would continue execution, and the failed referenced process cannot be
successfully resubmitted because the parent process is no longer waiting for a response.
For backward compatibility, the EscalateFailure parameter is set to true by default,
replicating this behavior. However, when pub.prt.admin:changeProcessStatus is invoked and
the EscalateFailure parameter is set to false, the failure of the referenced process is not
escalated to the parent process, and the parent process continues to wait for a response.
This allows the failed referenced process to be resubmitted, and upon successful
completion, the referenced process will rejoin the parent process.
To implement this scenario, you must design the referenced process so that it will call
pub.prt.admin:changeProcessStatus (on a terminate step, for example) with the EscalateFailure
parameter set to false. Then, if the referenced process fails, the parent process will remain
as "started", and you can then resubmit the referenced process. If the referenced process
fails again, the same behavior occurs. If the referenced process completes, it will rejoin
the parent instance.
45
A referenced process failure that occurs by a cause other than the changeProcessStatus
service (for example, an error occurs and there is no error handler step) is not affected by
this parameter and will continue to escalate the failure to the parent instance.
Note: To be able to resubmit the failed referenced process, you must enable the failed step
for resubmission in webMethods Monitor. For more information, see the Monitoring
BPM, Services, and Documents with BAM: webMethods Monitor Users Guide.
pub.prt.admin:deleteProcess
WmPRT. Deletes the storage information associated with a process, as well as any
mappings to correlation IDs, from the Process Engine database component.
The system automatically deletes most storage information when the process has
finished running, including correlation IDs and conversation IDs, after a process instance
completes. This should not cause any problems unless you re-use these IDs across
processes. However, Software AG strongly recommends that each ID be unique, and thus
that you not re-use them across processes.
Input Parameters
ProcessInstanceID
Output Parameters
success
Usage Notes
Using this service to delete storage information for a running process will produce
unpredictable results.
See Also
pub.prt.tn:deleteByCID
46
pub.prt.admin:resumeProcesses
WmPRT. Service that allows users to resume processing for one or all previously
suspended process models.
The service can be invoked either on a per-model basis or for all available models on a
given Process Engine server. When this service is executed, the subscription triggers for
the qualifying models are enabled, facilitating the creation of new instances. In addition,
any previously suspended instances are set to status = RESUMED. In the case of a cluster
or a distributed Process Engine set up, the no de that the service is invoked on is
considered primary and it broadcasts the resume action across all participating nodes
that it is aware of.
Input Parameters
ProcessModelID
String Optional. This is the process key for the model that the user
wants to resume. All versions of a given model are affected.
resumeAll
Output Parameters
message
success
Usage Notes
This service is intended for use during scheduled maintenance periods that require
processing to be paused for a period of time and then subsequently resumed. The service
may be used to resume processing by either resuming a single process model or all
available models on the system that were previously suspended.
47
The service affects all versions of targeted process models, and in the case of a cluster or
distributed set up, the resume action is relayed to all participating nodes. To resume only
a specific model, users can invoke this service and provide the appropriate value for the
ProcessModelID input parameter. To resume all models on a given system, invoke the
service by setting the value of the resumeAll parameter to true.
The service resumes subscription triggers for all targeted services. Any qualifying
instances that were previously set to suspended by other means (for example, manually
with webMethods Monitor) will be resumed, as the invocation of this service affects all
qualifying instances without exception.
Note: Be aware that the complementary suspendProcesses service suspends subscription
triggers for all targeted process models; during the suspension period, any incoming
documents directed to those models will be cached until such time as the model is
resumed. Applying the resumeProcesses service will enable the subscription triggers for
all targeted models, and all cached documents will be processed. This could cause a
temporarily heavy load on the system.
This service may not work as expected for environments or process models that use
volatile tracking. In this case, the resume feature relies solely on the Process Engine cache
in RAM to determine the instances that will be affected. However, due to its dynamic
nature, the Process Engine cache may be momentarily out-of-sync, especially following a
server restart or a package re-load. In such cases, resuming at the instance-level using
webMethods Monitor may be the only alternative.
The resume action is a series of independent tasks across all participating nodes. To verify
that the resume action is indeed complete, the users are advised to use the following
actions:
Check the Integration Server error log to make sure there were no exceptions.
Use webMethods Monitor to verify that the status of all the qualifying instances are
set to RESUMED.
Use the webMethods Broker trigger management page (Settings > Messaging >
Broker/Local Trigger Management) in the IS Administrator interface to verify that all the
qualifying subscription triggers are enabled.
See Also
pub.prt.admin:suspendProcesses
pub.prt.admin:scanPackage
WmPRT. Tells the Process Engine to scan a specified package for new or updated process
model version fragments and use these fragments to update its internal model index.
This service updates the Process Engine index as follows:
48
If a fragment file is new, scanPackage adds information from this file to the Process
Engine index.
If a fragment file is modified, scanPackage replaces existing index information to
reflect the modifications.
If a fragment file no longer exists, scanPackage deletes the corresponding index
information.
Input Parameters
Package
String Name of the package that you want to scan. If the named
package does not exist on the Integration Server, information
about any fragments previously loaded from that package will
be deleted from the Process Engine model index.
Output Parameters
ExistingFragments
ModifiedFragments
MissingFragments
NewFragments
Usage Notes
Use this service before or after replicating a package that contains Process Engine process
model version fragments to accomplish the following:
After unzipping a package onto a new server but before enabling it, invoke this
service to force the Process Engine to pick up the new fragments.
After disabling all related process model versions, zipping a package, and deleting
the package from an old server, invoke this service to force the Process Engine to
discard information about the old model version.
49
pub.prt.admin:suspendProcesses
WmPRT. Service that allows users to suspend processing for any or all available process
models.
The service can be invoked either on a per-model basis or for all available models on a
given Process Engine server. When this service is executed, the subscription triggers for
the qualifying models are suspended and no new instances are created. In addition, any
currently running instances are set to status = SUSPENDED. In the case of a cluster or a
distributed Process Engine set up, the node that the service is invoked on is considered
primary and it broadcasts the suspend action across all participating nodes that it is
aware of.
Input Parameters
ProcessModelID
String Optional. This is the process key for the model that the user
wants to suspend. All versions of a given model are affected.
suspendAll
Output Parameters
message
success
Usage Notes
This service is intended for use during scheduled maintenance periods that require
processing to be paused for some duration of time. The service may be used to suspend
processing in bulk, impacting either a single process model or all available models on the
system.
50
The service affects all versions of targeted process models, and in the case of a cluster or
distributed set up, the suspend action is relayed to all participating nodes. To suspend
only a specific model, users can invoke this service and provide the appropriate value for
the ProcessModelID input parameter. To suspend all models on a given system, invoke the
service by setting the value of the suspendAll parameter to true.
The service suspends subscription triggers for all targeted services. Note that when the
triggers are suspended, the change to the trigger state is persisted through subsequent
server restarts. Transition triggers are not suspended, and some preliminary transition
trigger processing may occur as the result of incoming documents. Incoming documents
directed to suspended models will be cached until such time as the model is resumed.
This service may not work as expected for environments or process models that use
volatile tracking. In this case, the suspend feature relies solely on the Process Engine
cache in RAM to determine the instances that will be affected. However, due to its
dynamic nature, the Process Engine cache may be momentarily out-of-sync, especially
following a server restart or a package re-load. In such cases, suspending at the instancelevel using webMethods Monitor may be the only alternative.
The suspend action is a series of independent tasks across all participating nodes. To
verify that the suspend action is indeed complete, the users are advised to use the
following actions:
Check the Integration Server error log to make sure there were no exceptions.
Use webMethods Monitor to verify that the status of all the qualifying instances are
set to SUSPENDED.
Use the webMethods Broker trigger management page (Settings > Messaging >
Broker/Local Trigger Management) in the IS Administrator interface to verify that all the
qualifying subscription triggers are enabled.
Use the IS Administrator Service Usage page (Server > Service Usage) to ensure that
there are no currently running threads. This may happen if there are any longrunning services that are waiting to finish.
See Also
pub.prt.admin:resumeProcesses
pub.prt.correlate:deleteCorrelation
WmPRT. Deletes all mappings between the specified process instance ID and any
correlation IDs or conversation IDs.
Input Parameters
ProcessInstanceID
51
Output Parameters
success
Usage Notes
Use this service with care. Deleting correlation mappings for running process instances
could have unpredictable results.
pub.prt.correlate:establishCorrelation
WmPRT. Sets up a correlation between a correlation ID and a process ID or between a
conversation ID (for a Trading Networks document) and a process ID.
Input Parameters
ProcessCorrelationID
ProcessInstanceID
MappingType
Output Parameters
success
Usage Notes
The Process Engine automatically establishes these mappings when Trading Networks or
IS documents are used to start processes, or when a Trading Networks document is
output from a running process. Use this service when there is no way for the Process
Engine to determine the mapping itself (for example, when a process starts with an IS
document and then waits for a Trading Networks document).
Use this service with care. Be sure to create correct mappings; an invalid mapping could
prevent other processes from completing successfully.
52
pub.prt.correlate:lookupCorrelation
WmPRT. Returns the process instance ID that is associated with the specified correlation
ID or conversation ID. If no association exists, creates a new process instance ID and
mapping.
Input Parameters
ProcessCorrelationID
MappingType
Output Parameters
ProcessInstanceID
success
Usage Notes
Use this service to check on mappings that were established with previous calls to
pub.prt.correlate:establishCorrelation or, under certain circumstances, to check on the existence
of a process with a particular correlation ID or conversation ID.
See Also
pub.prt.correlate:establishCorrelation
53
pub.prt:ErrorService
WmPRT. This specification has been deprecated and should no longer be used.
pub.prt.ExceptionTransitionInfo
WmPRT. This document type describes the information passed in the pipeline from a
step when that step has taken one of the various Error Transitions. This document type is
provided as a convenience to the Designer user to map any or all of the fields described in
this document type.
Input Parameters
ErrorMessage
String The error message describing the reason for the error
transition.
SourceStepID
SourceStepIteration
String The Step iteration count of the step that encountered the
error
ExceptionType
Output Parameters
None.
pub.prt.jms:send
WmPRT. Sends a JMS message. This service encodes an IS Document into a JMS message
and sends it to the specified destination using the specified options. The main difference
between this service and the pub.jms:send service in WmPublic is that this service allows
the user to easily specify the type of the document, which is required by the Process
Engine to kick off a process instance, as well as make it convenient to format the JMS
message appropriately for use with the Process Engine.
Input Parameters
isTransactional
destinationName
54
destinationType
deliveryMode
priority
timeToLive
data
documentType
useCSQ
Output Parameters
JMSTimestamp
JMSMessageID
Usage Notes:
This service is used to initiate a process instance. It utilizes the JMS Connection alias
named "PE_NONTRANSACTIONAL_ALIAS" to connect to a JMS Provider and send the
JMS Message. This connection alias must be configured by an IS administrator.
This service is a thin wrapper on top of the pub.jms:send service in WmPublic, but that
service may also be used to initiate a process instance. Most of the parameters specified
above map directly to similarly named parameters in the WmPublic service, with two
exceptions:
The pub.jms:send service in WmPublic requires a ConnectionAliasName input parameter.
Set this to "PE_NONTRANSACTIONAL_ALIAS".
55
There is no dedicated input parameter with which to set the documentType value that
is required by the Process Engine in order to correctly map a JMS Message to the
correct process model. Instead, callers of pub.jms:send must instantiate a documentType
field in the properties Document, and set the value of that field to the fully qualified
name of the IS document expected by the desired process model.
For more information about the pub.jms:send service see the webMethods Integration
Server Built-In Services Reference.
pub.prt.log:logActivityMessages
WmPRT. Logs process activity messages to the IS Core Audit Log database.
Input Parameters
FullMessage
BriefMessage
EntryType
Output Parameters
None.
Usage Notes
This service can be added either to the flow service generated for a process step or to
services called within that step. The service logs the input parameters to the
WMSERVICEACTIVITYLOG log file in the IS Core Audit Log database. Logged activity
messages can be viewed in webMethods Monitor on the Process Instance Status and Service
Details pages. For more information about viewing activity messages in webMethods
Monitor, see the webMethods Monitor documentation.
56
pub.prt.log:logCustomID
WmPRT. This service associates a "friendly name" (the customID) with a Process Instance
identifier. This friendly name can be used to search for the process instance in
webMethods Monitor.
Input Parameters
ProcessInstanceID
customID
Output Parameters
None.
pub.prt:ProcessData
WmPRT. Document type that describes the structure of the ProcessData section of the
pipeline for a process.
This pipeline is automatically filled in by the Process Engine for every step of a process.
The service for that step is executed with this data.
Parameters
ProcessInstanceID
ProcessIteration
String Number of times the process has been restarted (that is,
iteration count).
ProcessModelID
ProcessModelVersion
ProcessStepID
LogicalServer
String Name of the logical server on which the running step was
assigned and is executing.
TryCount
57
Roles
See Also
pub.prt.tn:RoleInfo
pub.prt.SubprocessModel
WmPRT. Document type that describes the information needed to invoke a dynamic
referenced process.
Important! This document type has no relationship to or interaction with subprocess
containers implemented in a process model. It applies to referenced processes only.
Input Parameters
WaitForSubprocess
String Flag indicating whether to wait for the child process (as
done with static referenced processes) or to launch it
asynchronously and not expect any return documents. Applies
to all process instances started from the document type.
true Default. Wait for the child process.
false Start the child process asynchronously and do not
expect any return documents.
SubprocessModelID
ReturnDocuments
SubprocessInstances
58
Key
Description.
Inputs
Key
Description.
Type
Document
Output Parameters
None.
Usage Notes
To enable successful execution of the dynamic referenced process, you must ensure that
these values are in the process pipeline prior to any activity (for example, input data
mapping) that applies to the referenced step. For example, you can specify the
SubprocessModels document list in the reference process input data mapping step.
Suppose you have specified ReturnDocuments and a WaitForSubprocess value of true. In
this case, the Process Engine waits for all instances of the child process to complete and
populates the pipeline with data from each child process instance, obtained from the
returned document(s). This data is now available for use.
For example, suppose that three instances of a LineItem child process are started, and
each of these instances is expected to return a LineItemPrice document. In this case, a
document list named LineItemPrice will be added to the pipeline and the data in it is
available for use; the order of the documents in the list is the same as the order of
invocation. This enables easy location of the data in the pipeline by using the return
document name.
pub.prt.timer.process:cancel
WmPRT. This service cancels the process timer for the specified process instance.
Input Parameters
ProcessInstanceID
Output Parameters
None.
59
pub.prt.timer.process:create
WmPRT. This service creates a process timer for the specified process instance.
Input Parameters
ProcessInstanceID
BaseDate
String The basis for the process timer. The following values
apply:
InstanceStart Sets the timer relative to the start time of
the process instance.
CurrentTime Sets the timer relative to the current time.
ExistingTimeout Sets the timer relative to the expiration
time of the current timer that exists for the process instance.
Days
Hours
Minutes
Seconds
Milliseconds
Output Parameters
None.
Usage Notes
The timer is expressed in terms of days, hours, minutes, seconds, and milliseconds. A
blank value is assumed to be 0 (zero). If a BaseDate of ExistingTimeout is specified and
there is no existing timer for the process, the current time will be used as the basis for the
timer (same as BaseDate of CurrentTime).
60
pub.prt.timer.process:createWithBusinessCalendar
WmPRT. This service creates a process timer for the specified process instance and the
specified business calendar.
Input Parameters
ProcessInstanceID
BaseDate
BusinessCalendar
Days
Hours
Minutes
Output Parameters
None.
Usage Notes
The timer is expressed in terms of days, hours, minutes, seconds, and milliseconds. A
blank value is assumed to be 0 (zero). If a BaseDate of ExistingTimer is specified and there
is no existing timer for the process, the current time will be used as the basis for the timer
(same as BaseDate of CurrentTime).
61
pub.prt.timer.process:createWithDate
WmPRT. This service creates a process timer for the specified process instance and the
specified date.
Input Parameters
ProcessInstanceID
Date
Output Parameters
None.
pub.prt.timer.process:get
WmPRT. This service returns the actual date that the timer will expire for the specified
process instance.
Input Parameters
ProcessInstanceID
Output Parameters
ProcessTimeout
pub.prt.tn:deleteByCID
WmPRT. Deletes a process instance associated with a given conversation ID.
Use this service to delete process state for processes that involve webMethods Trading
Networks and for which you have a conversation ID rather than a process ID.
Input Parameters
ConversationID
62
Output Parameters
success
String Flag indicating whether the process state was deleted. The
following values apply:
true The process state was deleted.
false The process state was not deleted.
Usage Notes
This service invokes pub.prt.correlate:lookupCorrelation to look up the mapped
ProcessInstanceID and invokes pub.prt.admin:deleteProcess to delete the process state
information.
Using this service to delete state of a running process will produce unpredictable results.
See Also
pub.prt.admin:deleteProcess
pub.prt.tn:getPIDforCID
WmPRT. Returns the process instance ID for a given conversation ID.
Use this service within a process that involves webMethods Trading Networks when you
have a conversation ID but need the corresponding process instance ID. This service is a
wrapper around pub.prt.correlate:lookupCorrelation.
Input Parameters
ConversationID
Output Parameters
ProcessInstanceID
success
See Also
pub.prt.tn:mapCIDtoPID
63
pub.prt.tn:getRoleInfo
WmPRT. Fetches role information for a specified role in process.
Use this service within processes that involve webMethods Trading Networks.
The returned information includes the internal ID of the partner within the Trading
Networks system, which you can use to retrieve the Trading Networks profile
information.
Input Parameters
ProcessData
roleName
Output Parameters
roleInfo
See Also
pub.prt.tn:RoleInfo
pub.prt.admin:changeProcessStatus
pub.prt.tn:handleBizDoc
WmPRT. Sends a Trading Networks BizDocEnvelope (Trading Networks document) to
the Process Engine, to allow the document to be processed as part of a business process.
Input Parameters
bizdoc
ConversationID
64
ProcessModelID
ProcessModelVersion
String Optional. Version of the process model that you want the
Process Engine to use to process the document.
Note: Specifying ProcessModelID and ProcessModelVersion
overrides the normal process of matching a document to a
process model version.
prtIgnoreDocument
Output Parameters
None.
Usage Notes
Trading Networks automatically sends documents to the Process Engine if it extracts a
conversation ID from the document. If you did not have Trading Networks extract a
conversation ID, you can use this service to supply a conversation ID and send the
document to the Process Engine to be processed as part of a business process.
pub.prt.tn:mapCIDtoPID
WmPRT. Sets up a mapping between the specified conversation ID and process instance
ID.
This service is a wrapper around pub.prt.correlate:establishCorrelation.
Input Parameters
ConversationID
ProcessInstanceID
65
Output Parameters
success
Note: If this service runs to completion, the mapping has been established.
Usage Notes
The Process Engine automatically establishes this mapping when a Trading Networks
document (bizdoc) is used to start a process or is modeled as an output from a process
step. Use this service when there is no way for the Process Engine to determine the
mapping itself (for example, when a process is started with a non-Trading Networks
document and later waits for a Trading Networks document).
Use this service with care. Be sure to create correct conversation ID to process instance ID
mappings; an invalid mapping could prevent other processes from completing
successfully.
See Also
pub.prt.tn:getPIDforCID
pub.prt.tn:MatchBizDoc
WmPRT. Matches the supplied business document ID to a valid process model. This
service provides support for webMethods Rosetta Net in Process Engine.
Input Parameters
bizdoc
useThisMid
requireStart
String A flag that indicates whether the associated step starts the
business process. The following values apply:
true Specify that the step associated with the specified
bizdoc is a step that starts the business process.
false Specify that the step associated with the bizdoc does
not have to start the business process.
66
Output Parameters
modelId
trackCount
String The internal process track count for the matching process
instance.
stepID
errorMessage
Usage Notes
The service invokes the original TNDispatcher.matchBizDoc() that returns the
MatchResult object. This object is parsed for the output parameters used by the Rosetta
Net implementation.
pub.prt.tn:RoleInfo
WmPRT. Document type that describes information maintained for roles in a process.
Parameters
ProfileID
CorporationName
OrgUnitName
Type
Status
67
PreferredProtocol
String The delivery protocol that the partner prefers you to use
when sending documents to it. The following values apply:
ftp1 - The partner prefers documents sent using the primary
FTP protocol.
ftp2 - The partner prefers documents sent using the
secondary FTP protocol.
http1 - The partner prefers documents sent using the
primary HTTP protocol.
http2 - The partner prefers documents sent using the
secondary HTTP protocol.
https1 - The partner prefers documents sent using the
primary HTTPS protocol.
https2 - The partner prefers documents sent using the
secondary HTTPS protocol.
smtp1 - The partner prefers documents sent using the
primary e-mail protocol.
smtp2 - The partner prefers documents sent using the
secondary e-mail protocol.
null - The partner prefers documents sent using the polling
protocol.
LastSendingLocale
68
Index
Symbols
.frag file 16
B
Broker
URL, specifying 29
C
Cache Cleanup Interval 30
cache, cluster, using 32
changeProcessStatus 44
Cleanup Service Execution Interval 29
cleanup service interval, database operation 29
cluster
cache, setting for 32
definition 10
determining if in cluster mode 34
external, setting for 31
JMS connection alias considerations 15
volatile tracking prohibited in 21
Clustered setting 34
Completed Process Expiration 29
connection alias, JMS 15
control trigger 15
information display of 35
conventions used in this document 5
correlating conversation IDs to process IDs 52
correlation
establishing 52
correlation service 43
CorrelationService specification 43
D
dashboard page 27
subsystem status 27
viewing 27
database component 10
Database Operation Retry Interval 28
Database Operation Retry Limit 28
deleteByCID 62
deleteCorrelation 51
deleteProcess 46
E
e-form listeners, viewing details of 36
environment pa ge, Process Engine
Loggers 35
environment page, Process Engine 34
Clustered setting 34
control triggers 35
JDBC Connections 35
Performance Collection 34
Error Logger 35
EscalateFailure 45
establishCorrelation 52
event detection, duplicate 30
requirements for 32
expiration property, process 29
Express Pipeline setting 20
External Cluster 31
F
Failed Process Expiration 29
fragment files, processing 48
G
getPIDforCID 63
getRoleInfo 64
H
handleBizDoc 64
home page, Process Engine 26
logging out of 26
69
J
JDBC Connections 35
JMS connection alias 15
L
lock step option 16
logActivityMessages 56
Loggers 35
logging
level, minimum 22
log custom ID 57
process activity messages 56
process data 11
process status 23
lookupCorrelation 53
M
mapCIDtoPID 65
mapping
between conversation ID and process instance ID
65
deleting between processes 51
MatchBizDoc 66
Maximum Cache Buffer Size 31
Minimum Logging Level setting 22
model index, updating 48
O
Optimize Locally setting 19
P
package
process description file 16
process model creation 14
scanning 48
partners, role information for processes 67
performance
concepts 10
overview of 18
Performance Collection 34
pipeline
Express Pipeline setting 20
information for processes 57
with Optimize Locally setting 19
process activity messages, logging 56
process description file 16
70
Process Engine
cluster, definition 10
concepts 10
configuring settings for 28
dashboard, viewing 27
database component 10
environment settings, viewing 34
home page 26
JMS connection alias 15
logging data 11
performance, overview of 18
performance. concepts 10
process information, viewing 35
properties, configuring 28
quality of service, concepts 10
quality of service, overview of 18
quality of service, setting 18
saving settings as XML 37
startup messages, viewing 27
status information storage 10
tuning, concepts 10
tuning, overview of 18
process expiration property 29
process instance IDs, returning 53, 63
Process Logger 35
process model
information, viewing 35
package creation 14
triggers 14
tuning quality of service and performance 10
process status
changing 44
process transition document 15
ProcessData document type 57
processes
changing status 44
deleting 62
deleting mapping between 51
deleting storage information 46
MatchBizDoc information for 66
pipeline information for processes 57
resuming
with built-in service 47
role information for 67
specification for correlation services 43
suspending
with built-in service 50
terminating 44
Processes page 35
program code conventions in this document 5
properties
Cache Cleanup Interval 30
Cleanup Service Execution Interval 29
Completed Process Expiration 29
configuring for Process Engine 28
Database Operation Retry Interval 28
Database Operation Retry Limit 28
Duplicate Event Detection 30
requirements for 32
External Cluster 31
Failed Process Expiration 29
Maximum Cache Buffer Size 31
process expiration 29
User Cluster Cache 32
pub.prt
CorrelationService 43
ErrorService 54
ProcessData 57
pub.prt.admin
changeProcessStatus 44
deleteProcess 46
resumeProcesses 47
scanPackage 48
suspendProcesses 50
pub.prt.correlate
deleteCorrelation 51
establishCorrelation 52
lookupCorrelation 53
pub.prt.ExceptionTransitionInfo 54
pub.prt.jms
send 54
pub.prt.log
logActivityMessages 56
logCustomID 57
pub.prt.SubprocessModel 58
pub.prt.timer.proc ess
cancel 59
pub.prt.timer.process
create 60
createWithBusinessCalendar 61
createWithDate 62
get 62
pub.prt.tn
deleteByCID 62
getPIDforCID 63
getRoleInfo 64
handleBizDoc 64
mapCIDtoPID 65
MatchBizDoc 66
RoleInfo 67
Q
quality of service
concepts 10
Express Pipeline 20
Locally 19
Minimum Logging Level 22
overview of 18
setting 18
Volatile Tracking 21
Volatile Transistion Documents 21
R
reload WmPRT package for duplicate detection 32
resumeProcesses service 47
resuming processes
with built-in service 47
retry interval for database operations 28
retry limit for database operations 28
RoleInfo 67
roles
fetching information 64
information for 67
S
scanPackage 48
Service Logger 35
services, built-in
resumeProcesses service 47
suspendProcesses service 50
settings
configuring 28
saving to XML 37
Settings page 28
specification, CorrelationService 43
startup messages for Process Engine, viewing 27
status
information, storage of 10
status control document 15
step
locking 16
storage information for processes, deleting 46
subscription document structure 14
71
subscription trigger 14
subsystem statuses 27
suspending processes with built-in service 50
suspendProcesses service 50
T
Trading Networks
BixDocEnvelope 64
returning internal ID 64
transition trigger 15
trigger, setting duplicate detection for 32
triggers
control 15
creation of 14
JMS 15
subscription 14
transistion 15
typographical conventions in this document 5
U
URL, Broker, specifying 29
User Cluster Cache 32
V
Volatile Tracking
cluster prohibition 21
setting 21
storing status information 10
Volatile Transition Documents setting 21
W
webMethods Monitor, logging with 23
X
XML, saving settings to 37
72