TIBCO® Fulfillment Order Management 2.1.2 - User's Guide · Related Documentation This section...

306
TIBCO ® Fulfillment Order Management User's Guide Software Release 2.1.2 December 2014

Transcript of TIBCO® Fulfillment Order Management 2.1.2 - User's Guide · Related Documentation This section...

TIBCO® Fulfillment OrderManagement User's GuideSoftware Release 2.1.2December 2014

Important Information

SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDEDOR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (OR PROVIDE LIMITEDADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THE EMBEDDED OR BUNDLEDSOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANY OTHER TIBCO SOFTWARE OR FORANY OTHER PURPOSE.

USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS AND CONDITIONS OF ALICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTED SOFTWARE LICENSE AGREEMENT,OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THE CLICKWRAP END USER LICENSE AGREEMENTWHICH IS DISPLAYED DURING DOWNLOAD OR INSTALLATION OF THE SOFTWARE (AND WHICH ISDUPLICATED IN LICENSE.PDF) OR IF THERE IS NO SUCH SOFTWARE LICENSE AGREEMENT ORCLICKWRAP END USER LICENSE AGREEMENT, THE LICENSE(S) LOCATED IN THE “LICENSE” FILE(S) OFTHE SOFTWARE. USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS AND CONDITIONS, AND YOURUSE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN AGREEMENT TO BE BOUND BY THE SAME.

This document contains confidential information that is subject to U.S. and international copyright laws and treaties.No part of this document may be reproduced in any form without the written authorization of TIBCO SoftwareInc.

TIBCO, Two-Second Advantage, TIBCO ActiveMatrix BusinessWorks, TIBCO Runtime Agent, TIBCO Administrator,TIBCO Enterprise Message Service, and TIBCO BusinessEvents are either registered trademarks or trademarks ofTIBCO Software Inc. in the United States and/or other countries.

EJB, Java EE, J2EE, and all Java-based trademarks and logos are trademarks or registered trademarks of SunMicrosystems, Inc. in the U.S. and other countries.

All other product and company names and marks mentioned in this document are the property of their respectiveowners and are mentioned for identification purposes only.

THIS SOFTWARE MAY BE AVAILABLE ON MULTIPLE OPERATING SYSTEMS. HOWEVER, NOT ALLOPERATING SYSTEM PLATFORMS FOR A SPECIFIC SOFTWARE VERSION ARE RELEASED AT THE SAMETIME. SEE THE README FILE FOR THE AVAILABILITY OF THIS SOFTWARE VERSION ON A SPECIFICOPERATING SYSTEM PLATFORM.

THIS DOCUMENT IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS ORIMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.

THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGESARE PERIODICALLYADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE INCORPORATEDIN NEW EDITIONS OF THIS DOCUMENT. TIBCO SOFTWARE INC. MAY MAKE IMPROVEMENTS AND/ORCHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS DOCUMENT AT ANYTIME.

THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY OR INDIRECTLY,BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE, INCLUDING BUT NOT LIMITEDTO ANY RELEASE NOTES AND "READ ME" FILES.

Copyright © 2010-2014 TIBCO Software Inc. ALL RIGHTS RESERVED.

TIBCO Software Inc. Confidential Information.

TIBCO® Fulfillment Order Management User's Guide

Contents

Preface..................................................................................................9Related Documentation..........................................................................................................10

Typographical Conventions....................................................................................................11

Connecting with TIBCO Resources........................................................................................12

Chapter 1 Orchestrator....................................................................13Architecture............................................................................................................................14

Backing Store..............................................................................................................14

Deployment.................................................................................................................14

Resource Failure Handling..........................................................................................14

Model Deployment.................................................................................................................16

Batch Notification...................................................................................................................17

Sub-batching..........................................................................................................................18

Synchronous Event Processing.............................................................................................19

Batch Event Processing.........................................................................................................20

Locking Strategy.....................................................................................................................21

Failover...................................................................................................................................22

Notification..............................................................................................................................24

Throttling................................................................................................................................26

Order Request Optimization...................................................................................................27

Dead Letter Queue.................................................................................................................28

External Dependency.............................................................................................................30

Steps To Enable Enrichment.......................................................................................30

Configuration...............................................................................................................31

Logging........................................................................................................................31

Time Dependency..................................................................................................................32

Non-Executing Plan Item........................................................................................................33

Process Component Destination............................................................................................34

Order Types............................................................................................................................35

Standard New Order Fulfillment..................................................................................35

Partially Completed Order Fulfillment..........................................................................35

Amend Order...............................................................................................................36

Cancel Order...............................................................................................................38

Suspend and Activate Order.......................................................................................39

Order Submission...................................................................................................................40

Synchronous Order Submission..................................................................................40

Execution Plan.......................................................................................................................41

Plan Tasks with Associated Process Components......................................................41

TIBCO® Fulfillment Order Management User's Guide

TOC | 5

Actions.........................................................................................................................41

Dependencies..............................................................................................................41

Order Header.........................................................................................................................42

Order Line..............................................................................................................................43

Orchestrator Interfaces...........................................................................................................44

Feasibility Providers.....................................................................................................44

Process Components..................................................................................................47

Pre-qualification Failed Handlers.................................................................................62

Plan Item Error Handlers.............................................................................................66

Chapter 2 Automated Order Plan Development............................73Overview................................................................................................................................74

Architecture............................................................................................................................75

Deployment.................................................................................................................75

Model Deployment.................................................................................................................78

Configuration..........................................................................................................................79

Main Configuration......................................................................................................79

Logs.............................................................................................................................80

Integration with Orchestrator.......................................................................................80

Features.................................................................................................................................81

Autoprovision...............................................................................................................81

Time Dependency.......................................................................................................82

Product Specification Field Decomposition.................................................................83

Sequencing..................................................................................................................84

Inventory......................................................................................................................88

Delta Provisioning........................................................................................................91

Product Affinity (Plan Item Level)................................................................................95

Configurable Handling of CrossLink +PCO Conflicts And Single Use +PCO Conflicts.105

Sort Plan....................................................................................................................106

Attribute Based Decomposition.................................................................................106

ProductDependsOn and ProductRequiredFor Relationships....................................107

Dependent and Sibling Products...............................................................................110

Shared Attributes.......................................................................................................111

Intermediate Milestones Dependencies....................................................................113

Order Amendment.....................................................................................................116

Order Priority.............................................................................................................131

Custom Action...........................................................................................................132

Chapter 3 Jeopardy Management System...................................133Jeopardy Management System............................................................................................134

Jeopardy Management..............................................................................................134

Chapter 4 Router............................................................................143

TIBCO® Fulfillment Order Management User's Guide

6 | TOC

Architecture..........................................................................................................................144

Chapter 5 Fulfillment Order Management User Interface..........145Navigation............................................................................................................................148

Changing Password.............................................................................................................149

Fulfillment Order Management Functionality........................................................................150

Dashboard.................................................................................................................150

Orders Page..............................................................................................................157

Plans Page................................................................................................................162

Jeopardy Rule Configuration.....................................................................................167

GANTT Chart............................................................................................................187

Activity Log................................................................................................................195

Catalog Tab................................................................................................................197

Fulfillment Provisioning Service Order Hierarchy.................................................................198

Fulfillment Provisioning Attributes and Parameters..............................................................199

Searaching for Fulfillment Provisioning Components...........................................................201

Chapter 6 Data Access Interfaces................................................203Get Order.............................................................................................................................204

Get Order Request....................................................................................................204

Get Order Response.................................................................................................204

Get Order Messages and Message Codes...............................................................206

Get Plan...............................................................................................................................207

Get Plan Request......................................................................................................207

Get Plan Response...................................................................................................208

Get Plan Messages and Message Codes.................................................................210

Get Plan Items......................................................................................................................212

Get Plan Items Request............................................................................................212

Get Plan Items Response..........................................................................................214

Get Plan Items Messages and Message Codes.......................................................216

Set Plan................................................................................................................................217

Set Plan Request.......................................................................................................217

Set Plan Response....................................................................................................219

Set Plan Messages and Message Codes..................................................................220

Set Plan Item........................................................................................................................221

Set Plan Item Request...............................................................................................221

Set Plan Item Response............................................................................................223

Set Plan Item Messages and Message Codes..........................................................224

Chapter 7 Best Practices for Fulfillment Order Management....225Process Component Design Guidelines...............................................................................226

Process Component Technology Selection...............................................................226

BusinessWorks - Asynchronous Process Component.........................................................228

TIBCO® Fulfillment Order Management User's Guide

TOC | 7

BusinessWorks - Synchronous Process Component...........................................................235

BusinessEvents - Process Component................................................................................236

Exception Handling Guidelines............................................................................................239

General Approach.....................................................................................................239

Example Approach....................................................................................................240

Pre Qualification Failed Handler................................................................................241

Technical Exception Handling....................................................................................242

Appendix A Schema References..................................................247Plan Item..............................................................................................................................248

Result Status........................................................................................................................250

Message...............................................................................................................................251

Order Request......................................................................................................................252

Appendix B Samples.....................................................................253Sample Order XML...............................................................................................................254

Sample Plan Item XML.........................................................................................................255

Sample XPATHs...................................................................................................................256

Appendix C Global Variables........................................................257AOPD Global Variables........................................................................................................258

Orchestrator Global Variables..............................................................................................262

Global Variables and Configurations....................................................................................283

Glossary..............................................................................................................305

TIBCO® Fulfillment Order Management User's Guide

8 | TOC

Preface

The preface contains information about documentation related to the current document, typographicalconventions, and information on how to contact TIBCO support.

TIBCO® Fulfillment Order Management User's Guide

Related Documentation

This section lists documentation resources you may find useful.

TIBCO Fulfillment Order Management Documentation

The following documents form the TIBCO Fulfillment Order Management documentation set:

• TIBCO Fulfillment Order Management Installation and Configuration Read this manual for instructions on installationand configuration.

• TIBCO Fulfillment Order Management Administration Read this manual for instructions on administration tasks.• TIBCO Fulfillment Order Management Web Services Read this manual for information about the web services.• TIBCO Fulfillment Order Management Release Notes Read the release notes for a list of features. This document

also contains the list of known issues for this release.• TIBCO Fulfillment Order Management User's Guide This manual describes the features as well as all the screens.• TIBCO Fulfillment Order Management Concepts and Architecture This manual describes terminology and concepts

of TIBCO Fulfillment Order Management.

Other TIBCO Product Documentation

You may find it useful to read the documentation for the following TIBCO products:

• TIBCO Fulfillment Catalog User's Guide This manual explains the features of TIBCO Fulfillment Catalog. Itprovides the details of the User and Administrator tasks.

TIBCO® Fulfillment Order Management User's Guide

10 | Preface

Typographical Conventions

The following typographical conventions are used in this manual:

Table 1: General Typographical Conventions

UseConvention

Many TIBCO products are installed within the same home directory. Thisdirectory is referenced in documentation as TIBCO_HOME. The value of

TIBCO_HOME

TIBCO_HOME depends on the operating system. For example, on Unix systemsthe default value is $HOME/tibco.

TIBCO Runtime Agent installs into a directory inside ENV_HOME. This directoryis referenced in documentation as TRA_HOME. The value of TRA_HOME depends

TRA_HOME

on the operating system. For example, on Unix systems the default value is$TIBCO_HOME/tra.

TIBCO Fulfillment Order Management installs into a directory insideENV_HOME. This directory is referenced in documentation as AF_HOME. The

AF_HOME

value of AF_HOME depends on the operating system. For example, on Unixsystems the default value is $TIBCO_HOME/af/2.1.

Code font identifies commands, code examples, filenames, pathnames, andoutput displayed in a command window. For example:

code font

Use MyCommand to start the foo process.

Bold code font is used in the following ways:bold code font

• In procedures, to indicate what a user types. For example: Type admin.• In large code samples, to indicate the parts of the sample that are of particular

interest.• In command syntax, to indicate the default parameter for a command. For

example, if no parameter is specified, MyCommand is enabled:

MyCommand [enable | disable]

Italic font is used in the following ways:italic font

• To indicate a document title. For example: See TIBCO BusinessWorks Concepts.• To introduce new terms For example: A portal page may contain several

portlets. Portlets are mini-applications that run in a portal.• To indicate a variable in a command or code syntax that you must replace.

For example: MyCommand pathname

The note icon indicates information that is of special interest or importance, forexample, an additional action required only in certain circumstances.

The tip icon indicates an idea that could be useful, for example, a way to applythe information provided in the current section to achieve a specific result.

The warning icon indicates the potential for a damaging situation, for example,data loss or corruption if certain steps are taken or not taken.

TIBCO® Fulfillment Order Management User's Guide

Preface | 11

Connecting with TIBCO Resources

How to Join TIBCOmmunity

TIBCOmmunity is an online destination for TIBCO customers, partners, and resident experts—a place toshare and access the collective experience of the TIBCO community. TIBCOmmunity offers forums, blogs,and access to a variety of resources. To register, go to http://www.tibcommunity.com.

How to Access All TIBCO Documentation

After you join TIBCOmmunity, you can access the documentation for all supported product versions here:

https://docs.tibco.com.

How to Contact TIBCO Support

For comments or problems with this manual or the software it addresses, please contact TIBCO Support asfollows:• For an overview of TIBCO Support, and information about getting started with TIBCO Support, visit this

site:

http://www.tibco.com/services/support

• If you already have a valid maintenance or support contract, visit this site:

https://support.tibco.com

Entry to this site requires a username and password. If you do not have a username, you can request one.

TIBCO® Fulfillment Order Management User's Guide

12 | Preface

Chapter

1Orchestrator

This section describes the functions of TIBCO® Fulfillment Order Management Orchestrator feature.

Topics

• Architecture• Model Deployment• Batch Notification• Sub-batching• Synchronous Event Processing• Batch Event Processing• Locking Strategy• Failover• Notification• Throttling• Order Request Optimization• Dead Letter Queue• External Dependency• Time Dependency• Non-Executing Plan Item• Process Component Destination• Order Types• Order Submission• Execution Plan• Order Header• Order Line• Orchestrator Interfaces

TIBCO® Fulfillment Order Management User's Guide

Architecture

Starting with TIBCO® Fulfillment Order Management (FOM) version 2.1.0, Orchestrator is a Java basedcomponent. The Orchestrator component is, by default, colocated with OMS. This simplifies the deploymentand administration. The Java implementation of the Orchestrator is multi-threaded, which improves theperformance.

Orchestrator needs to communicate with components such as AOPD, Feasibility, and Error Handlers. Theprevious implementation used exclusively JMS for communicating across components. JMS communicationwas identified as one of the bottleneck. Orchestrator can now invoke some of these components directlyinstead of using JMS. Orchestrator can invoke the AOPD component interface directly (if AOPD is in colocatedmode as well) or use JMS (if AOPD is in standalone mode).

Backing Store

OMS saves the state changes based on the notification received by the Orchestrator. Orchestrator used tohave its own database backing store to restore during failure all the concepts. Now that Orchestrator iscolocated with OMS, the Orchestrator data store is redundant. Orchestrator now uses OMS for restoring thestates during failures or for lazy loading.

Orchestrator can also access the Activespaces second level cache for accessing the data. Previously Orchestratorneeded to use the standard TDS interfaces to fetch the order and plan related information. Now Orchestratorcan access those data directly from the Activespaces second level cache.

Deployment

Orchestrator is automatically deployed, like OMS is. There is no additional operations to do in order to deployOrchestrator.

Resource Failure Handling

The Resource Failure Handling feature identifies the failure or unavailability of resources as soon as possibleand takes necessary actions. The Resource Failure Handling feature implements automatic reconnectionfeature for the key resources (JMS or DB) after failure or unavailability of these resources.

The Resource Failure Handling feature assists in the completion of the processing of previously submittedorder without data loss, and in the suspending of the order processing after detecting resource failure.

Resource Failure Handling Architecture

TIBCO® Fulfillment Order Management User's Guide

14 | Orchestrator

The two timer threads, one for the database and one for the JMS, keeps running at a predefined interval andchecks for resource failure. If an exception is identified then status of the particular resource is updated tothe HealthCheckEngine repository. If an exception is thrown while sending a JMS message by orchestratorthen that exception is reported to the HealthCheck thread and the resources are verified for failure. If a failureis detected then that failure is reported to the HealthCheckEngine repository. The HealthCheckEnginerepository is checked by the respective application to take the respective action on resource failure or recovery.

In case of a resource issue, the cluster processing will be stopped and the cluster status will be changed toINIT. The advisory messages will be processed by the Orchestrator for the JMS and the database. The messageswill be processed by the respective resource that is available. The Orchestrator will not process any requestsin case of a resource failure. The SOAP requests over JMS or HTTP will return back with the response codeto signify resource issue. All JMS listeners of the Orchestrator will be running but will not process the messages.The JMS messages will be delivered again to the mentioned listeners. Messages on the TDS interfaces willreturn an error code signifying a resource issue.

In case of resource recovery, the processing of the advisory messages will be stopped and the processing ofnormal heartbeat will resume. The cluster will be initilaized with all the available members in the clusterusing the hearteat mechanism. Once respective nodes are started, they will process the cleanup messgaes,and the pending batches, before marking the cluster state to the STARTED status. After node status is markedto STARTED, the normal processing will start and messgaes from JMS destinations will be processed.

For more details related to Resource Failure Handling, see the TIBCO® Fulfillment Order ManagementAdministration Guide.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 15

Model Deployment

Product Model Loading

The Product model has to be made available to AOPD (and OCV, if used). The model can be accessed Onlineor Offline.

In Online mode, the model is published on AOPD (and OCV, if used) queues.

In Offline mode, the model is on the file system, as a directory structure that contains files representing themodel. It will also persist to the OMS database.

Plan Fragment Loading

Once plan fragment is published to OMS, it is saved into database and further publishing of the same modelsare not required. Orchestrator queries OMS database to get required information about plan fragment asrequired. If plan fragment is not available in database and Orchestrator is not able to get required informationthen it throws exception and stops processing the plan.

TIBCO® Fulfillment Order Management User's Guide

16 | Orchestrator

Batch Notification

Following are the notifications sent by Orchestrator:1. Orchestrator sends the JMS notification to the Process Component for executing, suspending, and activating

the plan items. Orchestrator also needs to notify the Milestone waiting in the Process components

2. Orchestrator sends the JMS notifications for state changes. Third party applications and Jeopardy canlisten to these notifications.

The Orchestrator needs to execute the actions triggered by the state change. The actions are configuredinternally to dispatch the JMS Messages, process Database notifications and logging. Previously, OMS listensto the notifications from orchestrator and process them sequentially. Now, there is an option(com.tibco.fom.orch.syncDBEnabledOrchestrator) to synchronously process the actions and also executethe actions in Batch.

Batch threads are configured to run in the Orchestrator. Batch Threads execute the actions with each threaddedicated to a group of orders and batch worker queue. The user can configure the number of batch threads(com.tibco.fom.orch.batchProcessorsCnt) and the maximum size (com.tibco.fom.orch.maxBatchSize)of the batch to process per thread, depending on the load. Actions generated by order events are posted tothe Batch Queue and are processed in the sequence that was sent to Batch queue. Batch threads groups theaction execute requests and executes them in batch.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 17

Sub-batching

If the batching is configured, database notifications will be batched, executed, and committed to the batch.If the transaction fails, each notification from the batch is executed separately and committed to the database.If it still fails, the order id that is related to the notification is marked as batch error, and the notification ismoved to the dead letter table in database. Any other notifications for the same order are moved to deadletter table. Users can execute them manually using the JMX console. The following screenshot is of thejconsole with available operations to process dead letter table entries:

Figure 1: jConsole UI for Operations to Process Dead Letter Table Entries

TIBCO® Fulfillment Order Management User's Guide

18 | Orchestrator

Synchronous Event Processing

Events are consumed by the state machine and processed sequentially. Following is the list of the events thatare processed by Orchestrator:1. JMS Events that are primarily from process components and orchestrator Components.

Below is sequence of activities involved:a. State Machine receives the events from JMS.b. Events are consumed by State machine.c. State machine generates the actions to be executed. The actions are configured internally to dispatch

the JMS Messages, process Database notifications and logging.d. Actions are executed.e. Final state orders and checkpoints are cleaned up.

2. Time Dependent Events that are triggered using Timer.

Below is sequence of activities involved:a. State Machine receives the events from Timer Event.b. State machine generates the actions to be executed. The actions are configured internally to dispatch

the JMS Messages, process Database notifications and logging.c. Actions are executed.d. Final state orders and checkpoints are cleaned up.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 19

Batch Event Processing

Events are consumed by state machine and notifications generated by state machines are posted in the Batchprocess. Following is the list of the events that are processed by Orchestrator:1. JMS Events that are primarily coming from process components, OMS and clean-up. Clean up activity

include clean-up of checkpoints and cleaning the final state orders from local heap memory.

Below is the sequence of activities involved:a. State Machine receives the events from JMS.b. Events are consumed by the state machine.c. State machine generates the actions to be executed. The actions are configured internally to dispatch

the JMS Messages, process Database notifications and loggingd. Action execute requests are posted to Batch Process.

2. Time Dependent Events are triggered using Timer.

Below is the sequence of activities involved:a. State Machine receives the events from Timer Event.b. State machine generates the actions to be executed. The actions are configured internally to dispatch

the JMS Messages, process Database notifications and logging.c. Action execute requests are posted to Batch Process.

TIBCO® Fulfillment Order Management User's Guide

20 | Orchestrator

Locking Strategy

The share nothing architecture is used while processing the orders. Each order is mapped to one node andany subsequent event to the order is processed by the same node. JMS message selector is used to routingorders to the correct nodes. If the event message header does not have the routing information, messages areintercepted and routed to an appropriate node by adding the appropriate message selector.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 21

Failover

The Orchestrators can be deployed in a cluster domain. One of the members in the cluster can be ClusterManager (CM) and the others act as Workers (W). The Cluster Manager manages the workers in the clusters.Also the Cluster Manager monitors the members in cluster, so that it can also process the pending events infailed nodes.1. The Cluster Manager uses the heartbeat generated by the Workers to add members to the cluster and also

to detect failures.

2. At given point of time, only one member acts as the Cluster Manager, other members acting as Workers.When the node starts up, an unique sequence number is generated and assigned to each members. Thisnumber is also included in the heartbeat published by the members. Eventually all members in the clusterare aware of the sequence number assigned to the other members in cluster, based on the heartbeat. Eachmember can identify the lowest sequence numbers and find the corresponding node mapped to it. Memberwith lowest sequence number will start as the Cluster Manager and other nodes will start as Workers.When the cluster Manager member fails, the member next in sequence starts acting as the Cluster Manager.

3. The unique sequence number is generated using Sequence (SEQ_CLUSTER_SEQ_NUMBER) from OMSdatabase.

4. The Cluster Domain Name and members of the cluster are configured in the OMS database. The tablesdefinitions are as follows:

Table 2: table DOMAIN

DescriptionColumn

Name for the Cluster DomainDOMAINID

Short Description of the domainDESCRIPTION

Backing store (DB). DB will use SQL for updating the status ofthe node.

BACKINGSTORE

Interval between Heart Beat in millisecondsHEARTBEATINTERVAL

Interval between cycles in milliseconds to check if the node canbe cluster manager and start executing the cluster manager tasks.

MANAGERACTIVATIONINTERVAL

Cluster manager assumes the node is failed if does not receivethe heartbeat from failed node after this specified interval inmillisecond.

FTTHRESHOLDINTERVAL

Allowed values are 1 or 0. Default is 1. If set to 1, Orchestratorwill transfer the events from failed nodes and start processing it.If 0, events from failed nodes will not be transfered.

HANDLEFAILEDNODEEVENTS

Table 3: table DOMAINMEMBERS

DescriptionColumn

Name for the Cluster MemberMEMBERID

Short Description of the memberDESCRIPTION

Domain that the member belongs to.DOMAINID

Cluster ID is uniquely generated by the node on runtime.CLUSTERID

TIBCO® Fulfillment Order Management User's Guide

22 | Orchestrator

DescriptionColumn

Flag is true if the member is cluster manager or its false if thisworker.

ISCLUSTERMANAGER

Sequence number generated by the member.SEQNUMBER

Last updated Timestamp.LASTUPDATETIMESTAMP

INIT or STARTED. INIT means the node is initializing. STARTEDmeans the node has started.

STATUS

Heartbeat Time Stamp.HEARTBEATTIMESTAMP

5. The Orchestrator restores the data during failure from the checkpoints. The Orchestrator supports filecheck pointing and database check pointing.

6. On cluster failure, the Orchestrator's listeners and throttling are disabled. Node will join again in to thecluster with a new sequence number.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 23

Notification

External clients can listen to JMS notifications that are sent by the Orchestrator for state changes. User canenable the JMS notifications and configure the JMS destination name. Also user can filter the state changenotification.

Property name to filter notificationProperty name to enable notificationType ofstatechange

c.t.f.o.order.statusChange.filterc.t.f.o.enableOrderStatusChangeOrder StatusChange

c.t.f.o.orderLine.statusChange.filterc.t.f.o.enableOrderLineStatusChangeOrderLineStatusChange

c.t.f.o.plan.statusChange.filterc.t.f.o.enablePlanStatusChangePlan StatusChange

c.t.f.o.planItem.statusChange.filterc.t.f.o.enablePlanItemStatusChangePlanItemStatusChange

c.t.f.o.orderAmendment.filterc.t.f.o.enableOrderAmendmentStatusChangeOrderAmendmentStatusChange

For readability, the property names in the following table uses c.t.f.o as a short cut for com.tibco.fom.orch.

To enable these notifications, set value of respective property to true and define a filter if required. Filterproperty can be configured as a comma separated value of more than one status.

E.g. for setting filter property for Plan Status change:

<ConfValue description="Flag to enable or disable the publishing of Order Status Change notification message" name="Enable Order Status Change Notification" propname="com.tibco.fom.orch.enableOrderStatusChange" sinceVersion="2.1" visibility="Basic"> <ConfBool default="false" value="true"/> </ConfValue> <ConfValue description="Filter for Order status change notification; * will publish all" name="Order status change filter" propname="com.tibco.fom.orch.order.statusChange.filter" readonly="false" sinceVersion="2.1" visibility="Basic"> <ConfString default="*" value="*"/> </ConfValue> <ConfValue description="Flag to enable or disable the publishing of OrderLine Status Change notification message" name="Enable OrderLine Status Change Notification" propname="com.tibco.fom.orch.enableOrderLineStatusChange" sinceVersion="2.1" visibility="Basic"> <ConfBool default="false" value="true"/> </ConfValue> <ConfValue description="Filter for OrderLine status change notification; * will publish all" name="OrderLine status change filter" propname="com.tibco.fom.orch.orderLine.statusChange.filter" readonly="false" sinceVersion="2.1" visibility="Basic"> <ConfString default="*" value="*"/> </ConfValue> <ConfValue description="Flag to enable or disable the publishing of Plan Status Change notification message" name="Enable Plan Status Change Notification" propname="com.tibco.fom.orch.enablePlanStatusChange" sinceVersion="2.1" visibility="Basic"> <ConfBool default="false" value="true"/>

TIBCO® Fulfillment Order Management User's Guide

24 | Orchestrator

</ConfValue> <ConfValue description="Filter for Plan status change notification; * will publish all" name="Plan status change filter" propname="com.tibco.fom.orch.plan.statusChange.filter" readonly="false" sinceVersion="2.1" visibility="Basic"> <ConfString default="*" value="*"/> </ConfValue> <ConfValue description="Flag to enable or disable the publishing of PlanItem Status Change notification message" name="Enable PlanItem Status Change Notification" propname="com.tibco.fom.orch.enablePlanItemStatusChange" sinceVersion="2.1" visibility="Basic"> <ConfBool default="false" value="true"/> </ConfValue> <ConfValue description="Filter for PlanItem status change notification; * will publish all" name="PlanItem status change filter" propname="com.tibco.fom.orch.planItem.statusChange.filter" readonly="false" sinceVersion="2.1" visibility="Basic"> <ConfString default="*" value="*"/> </ConfValue> <ConfValue description="Flag to enable or disable the publishing of OrderAmendment Status Change notification message" name="Enable Order Amendment Status Change Notification" propname="com.tibco.fom.orch.enableOrderAmendmentStatusChange" sinceVersion="2.1" visibility="Basic"> <ConfBool default="false" value="true"/> </ConfValue> <ConfValue description="Filter for OrderAmendment status change notification; * will publish all" name="Order Amendment status change filter" propname="com.tibco.fom.orch.orderAmendment.filter" readonly="false" sinceVersion="2.1" visibility="Basic"> <ConfString default="*" value="*"/> </ConfValue> <ConfValue description="Flag to enable or disable the publishing of Plan development notification message" name="Enable Plan development notification" propname="com.tibco.fom.orch.enablePlanDevelopmentNotification" sinceVersion="2.1" visibility="Basic"> <ConfBool default="false" value="true"/> </ConfValue>

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 25

Throttling

Throttling controls the number of messages that the Orchestrator can consume and that can be dispatchedto the process component. If the Orchestrator dispatches more messages than the process components loadcapacity, then the process component becomes a bottleneck.

User controls the number of incoming messages the Orchestrator can consume at given point of time, byconfiguring the number of receivers for order receivers and process component receivers. For the outgoingmessages sent to the process components, the user can configure the default load capacity of the processcomponent. The Orchestrator stops consuming new orders when the number of process component requeststhat are not responded to exceeds the default load capacity.

Also the user can configure the load capacity for individual process components in the processProcessComponent.props located in the $AF_HOME\config folder. This property overrides the default loadcapacity. The user can configure the activation threshold in Percentage of load capacity so that the node canenable the listeners when the number of pending process component requests is less than this configuredvalue.

TIBCO® Fulfillment Order Management User's Guide

26 | Orchestrator

Order Request Optimization

The Router sends the order request to the Orchestrator with the payload. If the Orchestrator is throttled tonot pick more messages from the router, the message size will grow with the load. EMS Backing store willgrow when you have huge payload in the order request. User can enable a flag so the payload is truncatedfrom the message. The message contains only the order id in JMS Properties. The node that picks up thismessage will query the second level cache to get the corresponding payload, that needs to be processed.

<ConfValue description="Flag to control whether Orchestrator should receive only the reference or complete xml payload in the submit order request message from omsServer" isHotDeployable="true" name="Receive OrderRequest by Reference" propname="com.tibco.fom.orch.receiveOrderRequestByReference" readonly="false" sinceVersion="2.1" visibility="Basic"> <ConfBool default="true" value="true"/> </ConfValue>

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 27

Dead Letter Queue

When a JMS message reaches the maximum retry defined; it is sent to a dead queue configured with therespective route. In case of time dependencies if time dependency is not executed within the predefined retrycount it is saved into database and will not be picked by Orchestrator. This can be still triggered from JConsoleusing JMX interface.

Following are the cases when the dead letter queue is used:1. JMS Event fails after max retries: JMS messages are routed to Dead letter Queue in JMS. This can be viewed

using JMS Clients. The user can replay it by moving the dead letter queue messages back to source queueevents or by using JMX operations provided to move them to source queue.

2. Timer Events for Time dependent plan items fails after max retries: Time Events that fail after the maxnumber of retries will be moved to dead letter table in database.

3. Batching Errors: If the batching is configured, database Notifications are batched and executed andcommitted in batch. If the transaction fails, each notification from the batch is executed separately andcommitted in the database. If it still fails, order id that is related to the notification is marked as batch errorand notification is moved to dead letter table in database. Any other notifications for the same order aremoved to the dead letter table. User can execute them manually using JMX console.

4. Database table structure for dead letter queue:

Table 4: DEAD_LETTER table

DescriptionColumn

IDSID

Dead Letter ID (Any reference based on the dead letter type) For Timedependency and Batch, its order id.

DEADLETTERID

Allowed Values are TIME_DEPENDENCY and BATCH.DEADLETTERTYPE

Data blob.VALUE

Timestamp when record was last updated.LASTSTATUSCHANGE

5. Any JMS events on those orders before manually executing these requests are moved to JMS dead letterqueue.

6. Any Timer events on those orders before manually executing these requests are moved to DB dead letterqueue.

7. Following JMX operations are exposed to the user for viewing and executing the dead letter queue.

Expected ResultsArgumentsOperation

Displays list of all dead lettersaccording to the input parameter. If

A string value indicates deadletter type. Allowed values:

getDLQDB

input is empty string; it will list outTIME_DEPENDENCY andBATCH. It can be an empty string. all the dead letters including batch

errors and time events.

Displays list of messages pending onrespective dead queue provided as

A string value indicates deadqueue name or it can be an emptystring.

getDLQJMS

input. If input is empty string; it willlist out all the pending messages onall Orchestrator related dead queues.

TIBCO® Fulfillment Order Management User's Guide

28 | Orchestrator

Expected ResultsArgumentsOperation

Schedules the respective time eventfor execution. If dependencyID is

Two input parameter as stringvalue.

runDLQTimeDependencyErrors

empty string; schedules all time events1. orderIDof orderID available in dead letter forexecution.

2. dependencyID

Executes further processing ofrespective orderID. If input is an

A string value indicates orderIDor it can be an empty string.

runDLQBatchErrors

empty string, it will process allorderIDs available in dead letter.

Processes all messages pending onrespective dead queue. If input is an

A string value indicates deadqueue name or it can be an emptystring.

runOrchJMSDLQ

empty string, it will process messagespending on all dead queues.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 29

External Dependency

External dependency is a dependency type that waits for notification from an external system by an eventbefore it is satisfied. This dependency is specified by two attributes namely:1. event name: Name of the event that satisfies this dependency.2. event id: Unique identifier of the event name that satisfies this dependency.

The plan development/enrichment module which adds an external dependency to the milestone of a planitem has to ensure that the combination of event name and event id is unique across all the orders. A uniquedependency id is generated according to the two attributes mentioned above and saved in OMS database.

In order to satisfy a particular dependency, an external dependency request has to be sent by the processcomponent to Orchestrator using the following schema on the queuetibco.aff.orchestrator.planItem.externalDependency.release.request. The process componentmay choose to add 'originator' as a JMS message property with value as 'NodeID' if known to indicate toOMS the node from which this order is being processed.

Figure 2: Web service request parameters in an XML form

A hook has been provided to enrich the plan returned by OPD by adding external dependencies if needed.This can be achieved by implementing an interfacecom.tibco.aff.oms.server.jms.orch.custom.OrchestratorPlanEnricher present in omsCommon-1.0.jarlocated in $AF_HOME/lib. The interface defines a single method enrichPlan() which needs to be implemented.The implementation should be compiled with omsCommon-1.0.jar in the classpath. The compiledimplementation should then be added to the classpath of omsServer.war and the fully qualified name of theimplementer class should be added to the com.tibco.fom.orch.enrich.CustomOrchPlanEnricher propertyin Configurator. In order to complete the process, omsServer.war should be re-deployed in Tomcat. .

Steps To Enable Enrichment1. Create a new java project in IDE with omsCommon-1.0.jar in build path.2. Implement an interface with name

com.tibco.aff.oms.server.jms.orch.custom.OrchestratorPlanEnricher.3. Build the project and include the .class or jar file in WEB-INF/classes(.class) or WEB-INF/lib(jar)

folder of omsServer.war.4. Configure the implemented class name through Configurator.

TIBCO® Fulfillment Order Management User's Guide

30 | Orchestrator

Figure 3: Enrichment

By default, a blank value is present in the Configurator which indicates no enrichment.

5. Redeploy OMS Server.

A sample do-nothing implementation is included with distribution in omsCommon-1.0.jar presentat $AF_HOME/lib with the namecom.tibco.aff.oms.server.jms.orch.custom.CustomOrchestratorPlanEnricher.

Configuration

There are various configurations that can be modified to change the defaults for external dependencies.1. The queue on which external dependency release request should be sent.2. The number of receivers on the external dependency release request queue.3. PlanItem External Dependency Release Request dead queue.

Logging1. Successful integration with enrichment class

INFO : Sending plan of ORDER with orderID {} for enrichment to custom class {}.

2. Class configured through Configurator found but invalid implementation

INFO : Custom class {} is not a valid implementation of OrchestratorPlanEnricher. Skipping plan enrichment for orderID {}.

3. Class configured through Configurator not found.

INFO : Class with name [{}] supplied for custom plan enrichment not found in CLASSPATH. Skipping plan enrichment for orderID {}.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 31

Time Dependency

Time dependency is satisfied when a certain time period has elapsed, or a certain absolute date and time hasbeen reached. Time dependencies take the form of an absolute date time and once the time has reached orpassed, then the dependency is considered satisfied.

Time dependencies of a planItem are scheduled to be EXECUTED at the specified absolute time and onlyexecuted once the time is reached. If execution fails then the Orchestrator tries to execute it until maximumretries (com.tibco.fom.orch.timeDependency.maxRetryCount) is reached. If it fails during max retries then theOrchestrator puts the order into DEAD LETTER for future reference and the time dependencies will not bescheduled and not executed by the Orchestrator.

TIBCO® Fulfillment Order Management User's Guide

32 | Orchestrator

Non-Executing Plan Item

A Non-executing plan item does not need to be submitted to a Process Component.

A comma separated string of planFragment ID is defined with property namecom.tibco.fom.orch.nonexecuting.planfragmentID which indicates a planItem having these PlanFragments willbe treated as non-executing planItem.

<ConfValue description="Non Executing Planfragment ID" name="Non Executing Planfragment ID" propname="com.tibco.fom.orch.nonexecuting.planfragmentID" sinceVersion="2.1" visibility="Advanced"> <ConfString default="EP_BUNDLE_PROVIDE" value="EP_BUNDLE_PROVIDE"/><ConfValue>

The Orchestrator does not send any notification to process component and it completes the planItem alongwith its milestone dependencies.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 33

Process Component Destination

Currently, process component notifications are sent to a default destination if there is no owner defined inthe process component or to a destination with owner name if owner is defined in process component. Thisdestination can be overridden and a new destination can be used as destination for process componentnotifications. This can be configured using property com.tibco.fom.orch.overridePlanfragmentDestination. If thisproperty is set to true then the destination will be picked from ProcessComponent.props file for respectiveprocess component ID. Content of this property file will be loaded when file is modified and the updatedvalue will be used for sending notifications. This properties file will have destination defined for processcomponent as follows:

<Process Component ID>.destinationName=<Destination value>

The Destination value is a String.

If there is no destination defined for a process component in file ProcessComponent.props or propertycom.tibco.fom.orch.overridePlanfragmentDestination is configured as false then default behavior will be used andall the process component related notifications will be sent to a predefined queue. If the property is true andthe value is not configured, the default destination is used. The default value is false.

TIBCO® Fulfillment Order Management User's Guide

34 | Orchestrator

Order Types

Fulfillment Order Management supports the following order fulfillment modes:• Standard New Order Fulfillment

• Partially Completed Order Fulfillment

• Amend Order

• Cancel Order

• Suspend Order

• Activate Order

Standard New Order Fulfillment

Standard new order fulfillment is the process of submitting an order for orchestration which will create anew execution plan and orchestrate it to completion. This is the normal mode of operation for submittingnew orders to the system.

Partially Completed Order Fulfillment

Partially completed order fulfillment works in a similar manner, except as part of the plan development stepcertain plan items are indicated as having previously been completed. The new orchestration is created basedon this information. This will allow migration of partially completed orders from other fulfillment systemsinto Orchestrator.

In order for a partial order fulfillment to work, the previous fulfillment system must have suspended executionof the plan at a location that allows for migration. This will mean pushing orders through to completion ofthe currently in progress process component, and then suspending the order once all current in progresstasks have been completed. A sample scenario is outlined below:

Figure 4: Partially Completed Order Submission - Existing Fulfillment System

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 35

In the existing fulfillment system a plan is in execution. The plan snapshot occurs while process componentPC_2 is in progress. This plan will be in an inconsistent state and cannot be migrated. Therefore the in progressprocess component must be pushed through to completion before migrating the order. At this point PC_2will be completed and at this point the order will be suspended before PC_3 begins.

Figure 5: Partially Completed Order Submission – Orchestrator Fulfillment System

The partially completed order is submitted to Orchestrator just as a new order. During the callout for plandevelopment a migration component will analyze the order and determine if it is partially completed or not.If it’s a new order it will be processed normally. If it’s partially completed then a partial execution plan iscreated and returned to Orchestrator. Orchestrator will then set the status of previously completed plan itemsto complete so that they do not execute again. Orchestration will then continue at the next steps in the executionplan when the plan is resumed.

Amend Order

An order amendment is the process of making changes to a previously submitted order. An order can beamended by sending through the new order with the same orderID and orderRef as the previously submittedorder.

Orders may only be amended in certain lifecycle states.

Not AmendableAmendable

• Complete• Submitted

• •Feasibility Cancelled

•• WithdrawnPlan Development

• Pre-Qualification Failed

• Execution

• Suspended

• START

• Error-Handler

Amendments prior to creation of a plan take the form of updating the order in cache and then restarting theorder lifecycle back from Submitted. At this point a plan has not been generated and does not need to bemodified. When the fulfillment process reaches the Plan Development step, the updated order as it existsfrom the amendment will be used to generate the plan. This applies to order status of Submitted, Feasibility,Plan Development, and Pre-Qualification Failed.

For amendments that occur after a plan has been created, but while the plan is still Pending, then the orderis updated in cache, the existing plan is discarded and the order starts back from Submitted. This applies toorder status of Execution, but with a plan status of Pending.

TIBCO® Fulfillment Order Management User's Guide

36 | Orchestrator

For amendments that occur after a plan has started executing only certain aspects of an order may be amended.These are outlined below. Any other aspects of an order not explicitly detailed here are not amendable. Thisapplies to order and plan status of Execution.

There is no limitation on the number of amendments that are possible for any given order, but only oneamendment may be active at any one time. Once the amendment has completed, and the order resumesexecution then it is possible to amend the order again.

If the order goes to Pre-Qualification Failed state from OMS due to OCV validation failure, it cannot beamended.

If an order is amended in Pre-Qualification Failed state, the action of order line in the amendment orderrequest cannot be CANCEL.

Change Order Line Data

This represents changing some aspect of an order that does not impact the structure of a plan. This wouldbe the action, description, contents of UDFs or characteristics on an order line or on the order header. Actionand description may only be changed prior to execution while order line data may be changed at any pointduring the order lifecycle. The updated data is only guaranteed to be available in Process Components forplan items that are Pending at the time of amendment. Process Components for plan items in Execution mayor may not pick up the new data based on the Process Component implementation.

Changing the order line action will change the plan structure due to the addition of compensatoryand redo plan items.

Orders may only be amended in certain lifecycle states.

DescriptionStep

Updated data will be available when the plan item goes to Execution.Pending

The activate message to the Process Component will specify resume from the point ofsuspension. Processing will continue from the point of suspension. The Process Component

Execution

may choose to either retrieve the new data or continue processing with the previouslysubmitted data. The implementation details for this are left to customer requirements.

Not permitted. Any data changes are stored in cache, but the plan item is not processedagain. As the order is completed it is not possible to change the data.

Complete

Note that it is not possible to change the order line action at any point to anythingother than Cancel.

Change Order Required By Date

This represents changing the date that a particular order line is required on. Required by date may be changedat any point during the order lifecycle, but subject to the following plan item status restrictions.

DescriptionStep

Plan item dependency time will be updated so the plan item triggers at the amendedrequired by date.

Pending

Not permitted. Any required by date changes are ignored. As the plan item is alreadystarted, it is not possible to change the start date.

Execution

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 37

DescriptionStep

Not permitted. Any required by date changes are ignored. As the plan item is alreadycompleted, it is not possible to change the start date.

Complete

Add New Order Line

This represents adding a new order line to an order. As part of the amendment process the updated planwill be generated including any new plan items to fulfil the new order line. These will be inserted into theplan at the appropriate point with the appropriate dependencies. Note that one to many plan items may beinserted into the plan.

If the new plan items have point dependencies on previously completed plan items then these dependencieswill be satisfied. If the dependent plan items have not yet completed, then those dependencies will be satisfiedonly once they have completed.

If the new plan items have time dependencies that have previously elapsed then those dependencies will besatisfied. If the time dependencies have not yet elapsed, then those dependencies will be satisfied once therequired time period has passed.

As with any plan item, execution will only proceed once all dependencies have been satisfied.

Cancel Order Line

This represents cancelling only certain lines on an order. The cancelled order lines are processed as per theCancel Order scenario, but the non-cancelled order lines continue processing as before. Plan items withdependencies on cancelled order lines will be satisfied.

Refer to the cancel order scenario for details how order line cancellations are handled.

Cancel Order

Cancel order is a special case of Amend Order where the entire order is cancelled. Cancellations prior toEXECUTION status will update the state of the order. No plan will be developed and the order will becancelled.

Cancellations during EXECUTION status will cancel each individual order line based on the status of theassociated plan items. Refer to the following table for individual status handling. Aborting an order is aspecial case of order cancellation. In this case no compensating transactions are inserted and rollbacks occur.

DescriptionStep

The plan item status is set directly to Cancelled and will not execute. No rollback is requiredbecause no work has been performed yet. Related order lines will also go to Cancelled.

Pending

Orchestrator will request that the Process Component suspend execution of the plan item.Depending on whether it is possible to suspend execution, the Process Component may

Execution

either respond with a successful suspend or wait until execution completes and respondwith a normal plan item execute complete message.1. If the Process Component completes execution and returns a plan item execute complete

message then the cancellation is handled as if the plan item was Complete.

2. If the Process Component was able to suspend execution and responds with successfulsuspend, then when the amendment completed the Process Component will be notifiedto resume execution through an activate message. The activate message will indicatethat a cancellation has occurred, and whether rollback of previously completed tasksis required.

TIBCO® Fulfillment Order Management User's Guide

38 | Orchestrator

DescriptionStep

– If a rollback is requested, then the Process Component must roll back any previouslycompleted tasks and then respond with a plan item execute complete message.

– If no rollback is required, then the Process Component does not need to do anyfurther work, but must then respond with a plan item execute complete message.

In both these cases the plan item will go to Cancelled status and all associated orderlines will go to Cancelled status.

Orchestrator will evaluate the response from AOPD to determine if a rollback is required.If a rollback is required then a new plan item is inserted into the plan which will call a

Complete

compensating Process Component to rollback the previously completed plan item. Thisnew plan item will have no dependencies and will begin execution as soon as the planresumes.

When the compensating plan item completes, all associated order lines will go to Cancelledstatus.

If no rollback is required then the original plan item status remains Complete but allassociated order lines will go to Cancelled status.

Rollbacks are determined by AOPD based on certain rules. The factors that go into determining whether arollback is required are configuration in the Product Catalogue, the state of the plan at time of cancellation,and the type of cancellation requested in the amendment (full cancel or order abort.) AOPD indicates that aplan item does not require rollback by returning the plan item with a plan fragment unique ID ofNO_RECIPROCAL_ACTION. Orchestrator then interprets this as no rollback required.

Suspend and Activate Order

The order can be suspended at any point during the fulfillment process.1. If the order is in any of the pre-EXECUTION states, it will be suspended immediately.2. If the order is in EXECUTION state, Orchestrator sends the suspend requests to all the process components

associated to the plan items that are in execution state. These process components may either respondwith an execution suspend response, if they can suspend the processing or execution complete response,if the can't. Based on the response, the executing plan items will either go into SUSPENDED or COMPLETEstate. Finally, order and plan state will be changed to SUSPENDED.

3. The orders that are in final states such as COMPLETE or CANCELLED or already in SUSPENDED statecannot be suspended again.

The suspended orders can be activated back into the EXECUTION state so as to proceed ahead with thefulfillment.1. If the order was in any of the pre-EXECUTION states before suspension, it will be activated immediately

and processing will carry on further.2. If the order was in EXECUTION state before suspension, Orchestrator will activate it by sending the

activation requests for all the process components associated with the plan items that were SUSPENDED.Finally, order and plan state will be changed to EXECUTION.

If the amend order request doesn't contain an order line which was present in the original order , themissing order line is appended to amend order request with CANCEL action.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 39

Order Submission

A customer order is received from an external order capture or request injection system, for example a CRMsystem or a Business-to-Business (B2B) gateway, and Web services. The order must be in the XML format,must conform to the order schema, and is received via a Java Message Service (JMS) message.

Synchronous Order Submission

This feature allows you to synchronously submit the order and receive response on completion of orderfulfillment. This feature is useful when order fulfillment is a short-running process.

The basic function of synchronous submit order web service is to accept a new order request, and return backthe response to the calling application after the order has been completed through Orchestrator. The orderis stored in OMS and then sent to Orchestrator, which on completion (or failure) of order responds back. Thisresponse is then shown to the calling application. This is different from the Submit Order Service, whichaccepts the new order request, stores the order in OMS, sends the order to orchestrator, and returns theresponse back to the calling application with the order status as submitted without waiting for Orchestratorto respond back.

TIBCO® Fulfillment Order Management User's Guide

40 | Orchestrator

Execution Plan

Execution Plan is a process model which is developed for a concrete order and can also be termed as acollection of the activities that need to be completed to fulfill a customer order. Execution plans usually specifyhow the process components should be arranged to fulfill the order.

An execution plan consists of the following:• Plan Tasks with Associated Process Components• Actions• Dependencies

Plan Tasks with Associated Process Components

Each AOPD component is associated with a process component. Plans are automatically generated by theplan task or plan item based on the product model for a given order.

You can also group plan tasks into groups. This allows flexibility in creating the execution plan. For example,you can create dependencies on groups of tasks that all must be completed before the next task is started.

Actions

Each plan task has an action associated with it. These are the possible actions you can select for each plantask:• Provide• Cease• Update• Custom Actions

A plan task manages a particular item. Each action defines what needs to be done for a particular item. Anaction serves as an annotation to make the execution plan more understandable.

Dependencies

Plans are automatically generated by the system based on the product model for a given order.

A dependency can be defined as a relationship between milestones in an execution plan. For example, MilestoneB cannot start until Milestone A completes.

For details, see Intermediate Milestones Dependencies on page 113.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 41

Order Header

The table below lists the information contained in an order header:

DescriptionType

A unique identifier supplied by the system that submits the order. The OrderReference is used to determine whether the order is a new request or an

Order Ref ID

amendment. OMS does this by checking if an order with the same OrderReference is already stored in the database. If the order already exists, the orderis an amendment. If there is not, then it is a new order request.

If the orderRefId is not supplied by external system, then Fulfillment OrderManagement system generates the reference ID and sends in response.

Internal ID of the order generated and assigned by OMS.Order ID

Current status of an order. For instance, COMPLETE.Status

Execution Plan ID.Execution Plan

Indicates the date and time when the order must start fulfillment.Required By Date

Notes about the order. Basically this is any additional text that may be suppliedby the summiteer or submitting system.

Notes

Reference ID of the subscriber.Subscriber ID

Used to retrieve the current customer profile and to identify the customer toother systems interested in the order.

Customer ID

Date when the order is changed.Changed Date

Execution status of an order. For instance, COMPLETE.Execution Status

Currently not supported.Required On Date

The address to invoice for the order, if different from the customer address.Invoice Address

The address to deliver the order, if different from the customer address.Delivery Address

This is a list of the identifiers of any service level agreement that applies to aparticular order.

Service Level Agreements(SLA)

TIBCO® Fulfillment Order Management User's Guide

42 | Orchestrator

Order Line

An Order contains order lines. Each order line has the following information:

DescriptionType

Line no. of an order.Line No

The identifier of the specification of the product to be provided.Product ID

Inventory ID.Inventory ID

The action required for the specific product referred to in the order line. Youcan enter one of the following actions:

Action

• Provide: The customer has requested a new service.• Cease: The customer has requested that an existing service should cease.• Update: The customer has requested that an existing service be updated in

some way.• Cancel: the customer has cancelled the requested product.• <Custom Action>: Any defined custom action.

Indicates the date and time when the order line must start fulfillment.Required By Date

The number of the product required.Quantity

Currently not supported.Required On Date

Reference ID of the subscriber.Subscriber ID

Version of a particular product.Product Version

Link reference ID.Link ID

The current status of the order. This is automatically filled in and you cannotamend it. The status changes with the order item’s lifecycle.

Status

The date and time that the order line status last changed. This is automaticallyfilled in and you cannot amend it. It initially shows the date and time the orderline was created, and is updated to reflect later status changes.

Status Changed

The unit of measure of the product required.UOM (Unit ofMeasurement)

The address to deliver the order, if different from the customer address.Delivery Address

A list of product characteristics that are supplied as input parameters to theorder to provide additional information to the product specification. Forinstance, this may be the color of a mobile telephone.

Characteristics

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 43

Orchestrator Interfaces

Fulfillment Order Management Orchestrator is the primary fulfillment engine and implemented in a Javacomponent. Orchestrator requests Fulfillment Order Management AOPD to generate the execution plan forthe order submitted by OMS. On receiving the execution plan from AOPD, it executes the plan tasks for orderfulfillment.

This section provides the details of various interfaces exposed by Orchestrator for external integration.

For process component development, the following two project library files are shipped with the productunder the $AF_HOME/be/projectLibs directory:1. AF_Orchestrator.projlib - This library is used in the TIBCO BusinessEvents studio projects for BE 5.x

based process component development. It contains the Orchestrator resources. For example, events,channels/destinations, XML payload schema, JMS connections, JMS application properties, global variables,and so on.

2. AF_Orchestrator_ForDesigner.projlib - This library is used in the TIBCO Designer projects for theTIBCO BusinessWorks-based process component development and contains simple resources. For example,XML payload schema, JMS connections, JMS application properties, and global variables.

This project library is used and imported in the AF_TestHarness project.

The XML schema for all the interfaces exposed by Orchestrator are available in the$AF_HOME/schemas/schema/orchestrator directory.

Feasibility Providers

Overview

Feasibility Provider is a customer-specific implementation that checks whether an order is feasible forfulfillment. Feasibility might involve network inventory capacity analysis, stock checks, order line validation,or any other number of checks.

Fulfillment Order Management validation engine (OCV) may be used as part of feasibility checking todetermine if the order has the required order lines to constitute a valid order.

Feasibility checking is an optional step in the fulfillment process within Orchestrator. By disabling feasibilitychecking, no Feasibility Provider is required. However, if feasibility is enabled, then a Feasibility Providermust be available for orders to proceed. Feasibility Providers must conform to the following requirementsin order to be a valid implementation.

Specification• Receive event messages on a JMS queue.• Interpret the Feasibility Request event and determine if the order is feasible for fulfillment.• Create and send a response event on a JMS queue.• In the response event, specify whether the feasibility check has completed successfully by setting the

completed flag to TRUE if it was able to determine feasibility or FALSE if it was not able to concludefeasibility.

• In the response event specify whether the order has passed feasibility by setting the passed flag to TRUEif the order is feasible, or FALSE if it is not feasible.

• In the response event, optionally specify a list of warning or error messages whether the order has passedfeasibility or not.

TIBCO® Fulfillment Order Management User's Guide

44 | Orchestrator

Since the feasibility checking process is a customer-implemented component, the functional specification forthis process is out of scope of this document.

Feasibility Request

Feasibility Request is an event sent by Orchestrator to the Feasibility Provider to request order feasibilitychecking. It is an asynchronous request/reply event to a JMS queue that returns a reply to the default replyqueue for Feasibility Response.

If an exception occurs during feasibility checking, then it should be logged to the Feasibility Provider log.The details of the exception are returned in the response.

Asynchronous request eventEvent Type

QueueQueue orTopic

tibco.aff.orchestrator.provider.order.feasibility.requestDestination

The event has the following property:

DescriptionCardinalityTypeProperty

The value of the NODE_ID Java property that is set in thesetenv script of the Apache Tomcat instance, which is

OptionalStringoriginator

running the Orchestrator component. This property is sentby the Orchestrator in all the outbound JMS messages andis expected to be mapped back by the external systems(process components, feasibility providers, pre-qualificationfailure handlers, and error handlers) in the correspondingresponse messages.

The event has the following payload:

Figure 6: Feasibility Request

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across function calls.OptionalStringbusinessTransactionID

Unique identifier to correlate the request message with aresponse message.

OptionalStringcorrelationID

Order ID for the order to feasibility check.RequiredStringorderID

Order Request type. See Appendix A for the specificationof this type.

RequiredTypeorderRequest

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 45

Feasibility Response

Feasibility Response is an event sent by Feasibility Provider back to Orchestrator in response to a FeasibilityRequest event. It is an asynchronous reply event to a JMS queue.

The response for feasibility has completed and passed flags. Orchestrator will route the order lifecycle basedon the returned value of these flags. The two flags can be used to distinguish between technical and businessexceptions. For example, a failure to complete would generally indicate a technical exception so completewould be false. A validation failure would indicate a business exception where complete would be true, butpassed would be false.

This flag indicates whether the feasibility call completed. If this is set to true, then the Passedflag becomes relevant.

Completed

This flag indicates whether the order has passed feasibility.Passed

Based on different scenarios, these flags should be set as follows:

DescriptionPassedCompleted

Orchestrator refers the order to the Pre-Qualification FailedHandler if error handling is enabled for feasibility, or the erroris withdrawn if error handling is not enabled.

False TrueFalseTechnical Error

Orchestrator refers the order to the Pre-Qualification FailedHandler if error handling is enabled for feasibility, or the erroris withdrawn if error handling is not enabled.

FalseTrueBusiness Error

Processing continues as normal.TrueTrueSuccess

Asynchronous reply eventEvent Type

QueueQueue or Topic

tibco.aff.orchestrator.provider.order.feasibility.replyDestination

The event has the following property:

DescriptionCardinalityTypeProperty

The value of the originator property in theFeasibilityRequest message, received from the Orchestrator,

OptionalStringoriginator

which should be mapped and sent back in the responsemessage.

The event has the following payload:

TIBCO® Fulfillment Order Management User's Guide

46 | Orchestrator

Figure 7: Feasibility Response

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across function calls.OptionalStringbusinessTransactionID

Unique identifier to correlate the request message with aresponse message. Even though this field is marked as

RequiredStringcorrelationID

optional in the response schema, it is required forOrchestrator to be able to correlate the response with thecorrect version of the submitted order. Populate this fieldthe same as correlationID in the request message.

Result status type. See Appendix A for the specification ofthis type.

RequiredTyperesultStatus

Order ID for the order that was feasibility checked.RequiredStringorderID

Order ref for the order that was feasibility checked.RequiredStringorderRef

Flag indicating whether the feasibility call completed.RequiredBooleancompleted

Flag indicating whether the order has passed feasibility.RequiredBooleanpassed

Message type. See Appendix A for the specification of thistype. This list of messages will be passed to thePre-Qualification Failed Handler if invoked.

0-MTypemessage

Process Components

Overview

A Process Component is the implementation of a series of steps that are required to fulfill a plan item. Processcomponents should be implemented using any JMS-enabled technology provided they meet the requirementsoutlined here. Typically short-lived, automated processes will be implemented in BusinessEvents orBusinessWorks, while long-lived and manual processes will be implemented in iProcess.

These are required components in the architecture.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 47

Specification

Process Components must conform to the following requirements in order to be a valid implementation.

1. Receive event messages on a JMS queue.2. Receive the following event types:

a. Plan Item Execute Requestb. Plan Item Suspend Requestc. Plan Item Activate Request

3. For plan item execute requests, perform a series of tasks that are required to fulfill the product and actionspecified in the plan item. Once it has completed, send a plan item execute response.

4. When instructed to do so, halt execution at certain milestones until notified by Orchestrator it may continue.5. For plan item suspend requests, halt execution of an in-progress process component. This may or may

not be possible so it is valid to send back a plan item execute response if execution completed, or planitem suspend response if execution was suspended.

6. For plan item activate requests, resume execution of a previously suspended process component. Thisresume takes the form of one of the following cases:a. Resume execution from the point where it was previously suspended.b. Cancel execution and rollback previously completed tasks.c. Cancel execution and do not rollback previously completed tasks.

7. Create and send response events on a JMS queue.8. Respond with the following event types:

a. Plan Item Execute Responseb. Plan Item Suspend Response

Plan Item Execute Request Event

Plan Item Execute Request Event is sent by Orchestrator to a Process Component to request the fulfillmentof a particular plan item. It is received by the Process Component and a series of tasks then executes. It is anasynchronous event to a JMS queue. The response is another asynchronous event on a different JMS queue.

Asynchronous eventEvent Type

QueueQueue or Topic

tibco.aff.orchestrator.planItem.execute.requestDestination

The destination name tibco.aff.orchestrator.planItem.execute.request is valid only if ownervalue is "". Otherwise, the destination would be as follows: (If owner value is defined), the destinationwould be tibco.aff.orchestrator.planItem.<ownertype>.execute.request .

For example, if the owner value in the plan fragment model is BPM, the destination would betibco.aff.orchestrator.planItem.BPM.execute.request.

The event has the following properties:

DescriptionCardinalityTypeProperty

Unique identifier for the Process Component to beexecuted.

RequiredStringprocessComponentID

Name of the Process Component to be executed. Thisis the name as configured in the Process Component

RequiredStringprocessComponentName

Model for the specified processComponentID. If thereis no model specified then this field is null.

TIBCO® Fulfillment Order Management User's Guide

48 | Orchestrator

Version of the Process Component to be executed. Thisis the version as configured in the Process Component

RequiredStringprocessComponentVersion

Model for the specified processComponentID. If thereis no model specified then this field is null.

Type of the Process Component to be executed. This isthe type as configured in the Process Component Model

RequiredStringprocessComponentType

for the specified processComponentID. If there is nomodel specified then this field is null.

It is a class of processComponentType. This is theprocessComponentRecordType as configured in the

RequiredStringprocessComponentRecordType

Process Component Model. If there is no modelspecified then this field is null.

It is the standard JMS message priority to be sent in theoutbound message to support order priority.

RequiredIntegerJMSPriority

The value of the NODE_ID Java property that is set inthe setenv script of the Apache Tomcat instance, which

OptionalStringoriginator

is running the Orchestrator component. This propertyis sent by the Orchestrator in all the outbound JMSmessages and is expected to be mapped back by theexternal systems (process components, feasibilityproviders, pre-qualification failure handlers, and errorhandlers) in the corresponding response messages.

The payload specification is as follows:

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 49

Figure 8: Plan Item Execute Request

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Unique identifier to correlate the request messagewith a response message.

OptionalStringcorrelationID

Internal unique identifier for the order associatedwith the plan containing the plan item to execute.

RequiredStringorderID

External unique identifier for the order associatedwith the plan containing the plan item to execute.

RequiredStringorderRef

Internal unique identifier for the plan that containsthe plan item to execute.

RequiredStringplanID

Plan item type for the plan item to execute. SeeAppendix A for the specification of this type.

RequiredTypeplanItem

Service level agreement type.OptionalTypesla

Typical duration in msec for this execution whenSLAs are implemented in the Process Component.

RequiredLongsla/typicalDuration

Maximum duration in msec for this execution whenSLAs are implemented in the Process Component.

RequiredLongsla/maximumDuration

TIBCO® Fulfillment Order Management User's Guide

50 | Orchestrator

Milestone ID for a milestone within the ProcessComponent where execution must wait until notifiedby Orchestrator that it should proceed.

0-MStringwaitAtMilestoneID

MilestoneID for a milestone within the ProcessComponent where the Process Component must

0-MStringnotifyAtMilestoneID

notify Orchestrator that the milestone has beenpassed during execution.

Plan Item Milestone Release Request Event

Plan Item Milestone Release Event is sent by Orchestrator to a Process Component to instruct it to continueexecution when stopped at a particular milestone. It may be possible that this notification will occur beforethe Process Component has reached the milestone during execution. Therefore it is necessary for the ProcessComponent to maintain a state of the milestone at any time during execution. There is no response to thisinterface.

Asynchronous eventEvent Type

QueueQueue or Topic

tibco.aff.orchestrator.planItem.milestone.release.requestDestination

The event has the following properties:

DescriptionCardinalityTypeProperty

Unique identifier for the Process Componentto be executed.

RequiredStringprocessComponentID

Name of the Process Component to beexecuted. This is the name as configured in the

RequiredStringprocessComponentName

Process Component Model for the specifiedprocessComponentID. If there is no modelspecified then this field is null.

Version of the Process Component to beexecuted. This is the version as configured in

RequiredStringprocessComponentVersion

the Process Component Model for the specifiedprocessComponentID. If there is no modelspecified then this field is null.

Type of the Process Component to be executed.This is the type as configured in the Process

RequiredStringprocessComponentType

Component Model for the specifiedprocessComponentID. If there is no modelspecified then this field is null.

Internal unique identifier for the plan thatcontains the plan item with the milestone to bereleased.

RequiredStringplanID

Unique identifier for the plan item that containsthe milestone to be released.

RequiredStringplanItemID

Unique identifier for the milestone within theplan item and plan to be released.

RequiredStringmilestoneID

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 51

The value of the NODE_ID Java property that isset in the setenv script of the Apache Tomcat

OptionalStringoriginator

instance, which is running the Orchestratorcomponent. This property is sent by theOrchestrator in all the outbound JMS messagesand is expected to be mapped back by theexternal systems (process components,feasibility providers, pre-qualification failurehandlers, and error handlers) in thecorresponding response messages.

The payload specification is as follows:

Figure 9: Plan Item Milestone Release Request

DescriptionCardinalityTypeElement

Unique identifier fortracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Unique identifier tocorrelate the request

OptionalStringcorrelationID

message with a responsemessage.

Internal unique identifierfor the order associated

RequiredStringorderID

with the plan containingthe plan item with themilestone to be released.

External unique identifierfor the order associated

RequiredStringorderRef

with the plan containingthe plan item with themilestone to be released.

Internal unique identifierfor the plan that contains

RequiredStringplanID

TIBCO® Fulfillment Order Management User's Guide

52 | Orchestrator

the plan item with themilestone to be released.

Plan item type for theplan item with the

RequiredTypeplanItem

milestone to be released.See Appendix A for thespecification of this type.

Unique identifier for themilestone within the plan

RequiredStringmilestoneID

item and plan to bereleased.

Plan Item Milestone Notify Request Event

Plan Item Milestone Notify Event is sent by a Process Component to Orchestrator to notify the orchestrationengine that a particular milestone has been passed during execution.

Asynchronous eventEvent Type

QueueQueue or Topic

tibco.aff.orchestrator.planItem.milestone.notify.requestDestination

The event has the following property:

DescriptionCardinalityTypeProperty

The value of the originator property in thePlanItemExecuteRequest message, received from the

OptionalStringoriginator

Orchestrator, which should be mapped and sent back inthis response message.

The payload specification is as follows:

Figure 10: Plan Item Milestone Notify Request Event

DescriptionCardinalityTypeElement

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 53

Unique identifier for tracingpurposes across function calls.

OptionalStringbusinessTransactionID

Unique identifier to correlate therequest message with a responsemessage.

OptionalStringcorrelationID

Internal unique identifier for theorder associated with the plan

RequiredStringorderID

containing the plan item with themilestone to notify.

External unique identifier for theorder associated with the plan

RequiredStringorderRef

containing the plan item with themilestone to notify.

Internal unique identifier for theplan that contains the plan itemwith the milestone to notify.

RequiredStringplanID

Unique identifier for the planitem within the plan with themilestone to notify.

RequiredStringplanItemID

Unique identifier for themilestone within the plan item inthe plan to notify.

RequiredStringmilestoneID

Plan Item Execute Response Event

Plan Item Execute Response Event is sent by a Process Component as a response to a Plan Item ExecuteRequest Event or a Plan Item Suspend Event. Orchestrator receives the result and interprets the resultaccordingly. It is an asynchronous event to a JMS queue.

The response for Plan Item Execute has success, completed, and cancelled flags. Orchestrator does not takeany action in response to the cancelled flag. However it does route plan items to the Plan Item Failed Handlerif either completed or success is set to false. Functionally, Orchestrator handles both of these the same. PlanItem Failed Handlers may choose to handle the exception differently depending on a completed or failurestatus.

The two flags can be used to distinguish between technical and business exceptions. For example, a failureto complete would generally indicate a technical exception so completed would be false. A validation failurewould indicate a business exception where complete would be true, but success would be false.

This flag indicates that the Process Component completed. If this is set to true, then the Successflag becomes relevant. If this is false then the Process Component did not complete and theSuccess flag is automatically considered to be false as well.

Completed

This flag indicates whether the Process Component was successful. This is only relevant ifthe complete flag is set to true.

Success

The possible response scenarios are:

DescriptionPassedComplete

Orchestrator will retry the Process Component call for thedefined number of retries with the defined retry interval. If

False TrueFalseTechnical Error

TIBCO® Fulfillment Order Management User's Guide

54 | Orchestrator

the Process Component call continues to fail, then it will referthe plan item to the Plan Item Failed Handler.

Orchestrator will refer the plan item to the Plan Item FailedHandler.

FalseTrueBusiness Error

Processing continues as normal.TrueTrueSuccess

In addition to the completed and success values, the Plan Item Execute Response Event also allows returninga cancelled flag. This is only valid if responding to a Plan Item Activate Request Event and it indicates whetherthe cancellation was completed successfully whether or not a rollback was requested. The completed andsuccess values retain the same definitions in the event of an activation request as in an execution request.

The possible response scenarios are:

DescriptionCancelled

No cancellation occurred.FalseExecute Request

Cancellation requested with rollback.TrueActivate Request with Rollback

Cancellation requested with no rollback.TrueActivate Request withoutRollback

Asynchronous eventEvent Type

QueueQueue or Topic

tibco.aff.orchestrator.planItem.execute.replyDestination

The event has the following property:

DescriptionCardinalityTypeProperty

The value of the originator property in thePlanItemExecuteRequest message, received from the

OptionalStringoriginator

Orchestrator, which should be mapped and sent back inthe response message.

The payload specification is as follows:

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 55

Figure 11: Plan Item Execute Response

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Unique identifier to correlate the request messagewith a response message.

OptionalStringcorrelationID

Result status type. See Appendix A for thespecification of this type.

RequiredTyperesultStatus

Internal unique identifier for the order associatedwith the plan containing the plan item to execute.

RequiredStringorderID

External unique identifier for the order associatedwith the plan containing the plan item to execute.

RequiredStringorderRef

Internal unique identifier for the plan that containsthe plan item to execute.

RequiredStringplanID

Unique identifier for the plan item within the planto be executed.

RequiredStringplanItemID

Flag indicating if the Process Component completedprocessing.

RequiredBooleancompleted

Flag indicating if the Process Component completedsuccessfully.

RequiredBooleansuccess

TIBCO® Fulfillment Order Management User's Guide

56 | Orchestrator

Flag indicating that the Process Componentsuccessfully cancelled previously completed tasks.

RequiredBooleancancelled

Message type. See Appendix A for the specificationfor this type.

0-MTypemessage

Flag indicating that the execution time of the ProcessComponent violated the typical SLA duration.

OptionalTypetypicalSLAViolated

Flag indicating that the execution time of the ProcessComponent violated the maximum SLA duration.

OptionalTypemaximumSLAViolated

Plan Item Suspend Request Event

Plan Item Suspend Request Event is sent by Orchestrator to a Process Component to request suspension ofexecution of a particular plan item. It is received by the Process Component which then either suspendsexecution or completes execution. It is an asynchronous event to a JMS queue. The response is anotherasynchronous event on a different JMS queue.

Asynchronous eventEvent Type

QueueQueue or Topic

tibco.aff.orchestrator.planItem.suspend.requestDestination

The destination name tibco.aff.orchestrator.planItem.suspend.request is valid only if ownervalue is "". Otherwise, the destination would be as follows: (If owner value is defined), the destinationwould be tibco.aff.orchestrator.planItem.<ownertype>.suspend.request .

For example, if the owner value in the plan fragment model is BPM, the destination would betibco.aff.orchestrator.planItem.BPM.suspend.request.

The event has the following properties:

DescriptionCardinalityTypeProperty

Unique identifier for the Process Component to be executed.RequiredStringprocessComponentID

Name of the Process Component to be executed. This is thename as configured in the Process Component Model for the

RequiredStringprocessComponentName

specified processComponentID. If there is no model specifiedthen this field is null.

Version of the Process Component to be executed. This is theversion as configured in the Process Component Model for the

RequiredStringprocessComponentVersion

specified processComponentID. If there is no model specifiedthen this field is null.

Type of the Process Component to be executed. This is the typeas configured in the Process Component Model for the specified

RequiredStringprocessComponentType

processComponentID. If there is no model specified then thisfield is null.

It is a class of processComponentType. This is theprocessComponentRecordType as configured in the Process

RequiredStringprocessComponentRecordType

Component Model. If there is no model specified then this fieldis null.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 57

It is the standard JMS message priority to be sent in theoutbound message to support order priority.

RequiredIntegerJMSPriority

The value of the NODE_ID Java property that is set in the setenvscript of the Apache Tomcat instance, which is running the

OptionalStringoriginator

Orchestrator component. This property is sent by theOrchestrator in all the outbound JMS messages and is expectedto be mapped back by the external systems (processcomponents, feasibility providers, pre-qualification failurehandlers, and error handlers) in the corresponding responsemessages.

The payload specification is as follows:

Figure 12: Plan Item Suspend Request

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across functioncalls.

OptionalStringbusinessTransactionID

Unique identifier to correlate the request messagewith a response message.

OptionalStringcorrelationID

Internal unique identifier for the order associatedwith the plan containing the plan item to besuspended.

RequiredStringorderID

External unique identifier for the order associatedwith the plan containing the plan item to besuspended.

RequiredStringorderRef

Internal unique identifier for the plan that containsthe plan item to be suspended.

RequiredStringplanID

Plan item type for the plan item to be suspended.See Appendix A for the specification of this type.

RequiredTypeplanItem

TIBCO® Fulfillment Order Management User's Guide

58 | Orchestrator

Plan Item Suspend Response Event

Plan Item Suspend Response Event is sent by a Process Component as a response to a Plan Item SuspendRequest Event. Orchestrator receives the result and interprets the result accordingly. It is an asynchronousevent to a JMS queue.

Asynchronous eventEvent Type

QueueQueue orTopic

tibco.aff.orchestrator.planItem.suspend.replyDestination

The event has the following property:

DescriptionCardinalityTypeProperty

The value of the originator property in thePlanItemSuspendRequest message, received from the

OptionalStringoriginator

Orchestrator, which should be mapped and sent back inthe response message.

The payload specification is as follows:

Figure 13: Plan Item Suspend Response

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across function calls.OptionalStringbusinessTransactionID

Unique identifier to correlate the request message with aresponse message.

OptionalStringcorrelationID

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 59

Result status type. See Appendix A for the specification ofthis type.

RequiredTyperesultStatus

Internal unique identifier for the order associated with theplan containing the plan item to suspend.

RequiredStringorderID

External unique identifier for the order associated with theplan containing the plan item to suspend.

RequiredStringorderRef

Internal unique identifier for the plan that contains the planitem to suspend.

RequiredStringplanID

Unique identifier for the plan item within the plan to besuspended.

RequiredStringplanItemID

Flag indicating if the Process Component suspendcompleted processing.

RequiredBooleancompleted

Flag indicating if the Process Component suspendcompleted successfully.

RequiredBooleansuccess

Plan Item Activate Request Event

Plan Item Activate Request Event is sent by Orchestrator to a Process Component to request activation of apreviously suspended plan item. It is received by the Process Component which then resumes, cancels withrollback, or cancels without rollback. It is an asynchronous event to a JMS queue. There is no specific responseto a Plan Item Activate Request Event, however the Process Component is expected to complete processingand return a Plan Item Execute Response Event as usual.

Asynchronous eventEvent Type

QueueQueue orTopic

tibco.aff.orchestrator.planItem.activate.requestDestination

The destination name tibco.aff.orchestrator.planItem.activate.request is valid only if ownervalue is "". Otherwise, the destination would be as follows: (If owner value is defined), the destinationwould be tibco.aff.orchestrator.planItem.<ownertype>.activate.request .

For example, if the owner value in the plan fragment model is BPM, the destination would betibco.aff.orchestrator.planItem.BPM.activate.request.

The event has the following properties:

DescriptionCardinalityTypeProperty

Unique identifier for the Process Component tobe executed.

RequiredStringprocessComponentID

Name of the Process Component to be executed.This is the name as configured in the Process

RequiredStringprocessComponentName

Component Model for the specifiedprocessComponentID. If there is no modelspecified then this field is null.

Version of the Process Component to be executed.This is the version as configured in the Process

RequiredStringprocessComponentVersion

Component Model for the specified

TIBCO® Fulfillment Order Management User's Guide

60 | Orchestrator

processComponentID. If there is no modelspecified then this field is null.

Type of the Process Component to be executed.This is the type as configured in the Process

RequiredStringprocessComponentType

Component Model for the specifiedprocessComponentID. If there is no modelspecified then this field is null.

It is a class of processComponentType. This is theprocessComponentRecordType as configured in

RequiredStringprocessComponentRecordType

the Process Component Model. If there is nomodel specified then this field is null.

It is the standard JMS message priority to be sentin the outbound message to support orderpriority.

RequiredIntegerJMSPriority

The value of the NODE_ID Java property that is setin the setenv script of the Apache Tomcat

OptionalStringoriginator

instance, which is running the Orchestratorcomponent. This property is sent by theOrchestrator in all the outbound JMS messagesand is expected to be mapped back by the externalsystems (process components, feasibilityproviders, pre-qualification failure handlers, anderror handlers) in the corresponding responsemessages.

The payload specification is as follows:

Figure 14: Plan Item Activate Request

The following table lists the details of the elements.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 61

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Unique identifier to correlate the requestmessage with a response message.

OptionalStringcorrelationID

Internal unique identifier for the orderassociated with the plan containing the planitem to activate.

RequiredStringorderID

External unique identifier for the orderassociated with the plan containing the planitem to activate.

RequiredStringorderRef

Internal unique identifier for the plan thatcontains the plan item to activate.

RequiredStringplanID

Plan item type for the plan item to activate. SeeAppendix A for the specification of this type.

RequiredTypeplanItem

Flag indicating that the Process Componentshould resume execution from the point whereit was previously suspended.

Required,Choice

TyperesumeExecution

Flag indicating that the Process Componentshould cancel execution and roll backpreviously completed tasks.

Required,Choice

TypecancelAndRollback

Flag indicating that the Process Componentshould cancel execution and not roll backpreviously completed tasks.

Required,Choice

TypecancelWithNoRollback

Pre-qualification Failed Handlers

Overview

A Pre-Qualification Failed Handler is a customer-implemented component used to manage failed feasibilityand plan development steps in Orchestrator. During the fulfillment process, Orchestrator would optionallycall out to a Feasibility Provider and always call out to a Plan Development Provider.

The Feasibility Provider analyzes the order to determine if it can be fulfilled. If it indicates that the ordercannot be fulfilled, then the fulfillment process cannot proceed. The order may be referred to thePre-Qualification Failed Handler for manual intervention if feasibility error handling is enabled.

The Plan Development Provider designs a plan from the order. If a plan cannot be designed then the fulfillmentprocess cannot proceed and the order may be referred to the Pre-Qualification Failed Handler for manualintervention if OPD error handling is enabled.

Pre-Qualification Failed Handler is an optional component in the architecture. Customers may choose toimplement full error handling within the Feasibility Provider and the Plan Development Provider. In thatcase it is not valid to return anything back to Orchestrator other than passed in the case of feasibility andsuccess in the case of plan development. If anything else is returned to Orchestrator there is no handler toprocess the result and the plan remains either in feasibility or OPD state.

Specification

Pre-Qualification Failed Handlers must conform to the following requirements in order to be a validimplementation.

TIBCO® Fulfillment Order Management User's Guide

62 | Orchestrator

1. Receive event messages on a JMS queue.2. Interpret the Pre-Qualification Failed Request event and determine how best to route the failed order for

further processing.3. If necessary, distinguish between feasibility and plan development failures and direct the order to the

correct handling component.4. Create and send a response event on a JMS queue.5. In the response event specify one of three possible actions that Orchestrator is to take in response to the

error: resubmit, retry, or withdraw.

The three actions that can be specified are as follows:

The Pre-Qualification Failed Handler sends back a new orderRequest that Orchestrator resubmitsautomatically. This is handled as a pre-execution order amendment and execution begins from

Resubmit

Submitted state. An audit history of the original order is maintained in the Transient Data Store.In order to resubmit, the orderID and orderRef in the new order must match that of the originalorder.

Orchestrator resubmits the order to either the Feasibility Provider or the Plan DevelopmentProvider as it was originally submitted. If this new call fails, the order is sent back to thePre-Qualification Failed Handler again.

Retry

The order will be withdrawn from Orchestrator and not be fulfilled. It is deleted from the engineand Transient Data Store.

Withdraw

The details of the Pre-Qualification Failed Handler is left as a customer-specific implementation. An exampleof a handler could be the following:1. Receive a Pre-Qualification Failed Handler Request event messages on a JMS queue by a BusinessWorks

process.2. BusinessWorks starts a process instance in iProcess.3. The iProcess process model creates a manual task and displays a form in a work queue for operations

support. The form displays the order as well as the details of the failure.4. Operations support reviews the task and chooses one of the following options:

a. Make changes to the order that allows the order to pass feasibility and plan development. The ordershould be resubmitted.

b. Update configurations in back-end systems or product catalogue that allows the order to pass feasibilityand plan development. The order may then be retried.

c. Determine the order is invalid and withdraw the order.

5. The task is completed.6. iProcess then invokes a BusinessWorks service that creates the Pre-Qualification Failed Handler Response

event, and populates the event with the appropriate information and flags the response to resubmit, retry,or withdraw as appropriate. This event is then sent on a JMS queue to Orchestrator. The iProcess procedurethen terminates.

7. Orchestrator receives the Pre-Qualification Failed Handler Response and processes it accordingly.

Pre-Qualification Failed Request Event

Pre-Qualification Failed Request Event is sent by Orchestrator in response to a failed feasibility or plandevelopment call. It is received by the Pre-Qualification Failed Handler for manual processing. It is anasynchronous event to a JMS queue. The response is another asynchronous event on a different JMS queue.

Asynchronous eventEvent Type

QueueQueue or Topic

tibco.aff.orchestrator.provider.order.prequal.failed.requestDestination

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 63

The event has the following property:

DescriptionCardinalityTypeProperty

The value of the NODE_ID Java property that is set in thesetenv script of the Apache Tomcat instance, which is

OptionalStringoriginator

running the Orchestrator component. This property is sentby the Orchestrator in all the outbound JMS messages andis expected to be mapped back by the external systems(process components, feasibility providers, pre-qualificationfailure handlers, and error handlers) in the correspondingresponse messages.

The event has the following payload:

Figure 15: Pre-Qualification Failed Request

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across functioncalls.

OptionalStringbusinessTransactionID

Unique identifier to correlate the request message witha response message.

OptionalStringcorrelationID

Order ID for the order that failed feasibility or plandevelopment.

RequiredStringorderID

Order Request type for the order that failed feasibilityor plan development. See Appendix A for thespecification of this type.

RequiredTypeorderRequest

Flag indicating that this failure was due to a feasibilityfailure.

Required, ChoiceTypefeasibilityFailed

Flag indicating that this failure was due to a plandevelopment failure.

Required, ChoiceTypeopdFailed

Message type. See Appendix A for the specification ofthis type. This will be any list of messages passed back

0-MTypemessage

from the Feasibility Provider or the Plan DevelopmentProvider.

TIBCO® Fulfillment Order Management User's Guide

64 | Orchestrator

Pre-qualification Failed Response Event

Pre-Qualification Failed Response Event is sent by Pre-Qualification Failed Handler as a response to the failedfeasibility or plan development step. Orchestrator receives the result and interprets the result accordingly.It is an asynchronous event to a JMS queue.

Asynchronous eventEvent Type

QueueQueue or Topic

tibco.aff.orchestrator.provider.order.prequal.failed.replyDestination

The event has the following property:

DescriptionCardinalityTypeProperty

The value of the originator property in thePre-QualificationFailedRequest message, received from

OptionalStringoriginator

the Orchestrator, which should be mapped and sent backin the response message.

The event has the following payload:

Figure 16: Pre-qualification Failed Response

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Unique identifier to correlate the request messagewith a response message. Even though this field

RequiredStringcorrelationID

is marked as optional in the response schema, itis required for Orchestrator to be able to correlatethe response with the correct version of the

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 65

submitted order. Populate this field the same ascorrelationID in the request message.

Internal unique identifier for the order that failedfeasibility or plan development.

RequiredStringorderID

External unique identifier for the order that failedfeasibility or plan development.

RequiredStringorderRef

Flag indicating that the order should bewithdrawn.

Required, ChoiceTypewithdraw

Flag indicating that the order should retryfeasibility without any changes. This response

Required, ChoiceTyperetryFeasibility

may be made in cases where the request was foreither feasibility or plan development failure.

Flag indicating that the order should retry plandevelopment without any changes. This response

Required, ChoiceTyperetryOPD

may be made in cases where the request was forplan development failure. Technically there is norestriction on doing so in the case of a feasibilityfailure, but functionally it does not make senseto do so.

Order request type. See Appendix A for thespecification of this type. This is provided in thecase of an order resubmit.

Required, ChoiceTypeorderRequest

Message type. See Appendix A for thespecification of this type. If populated, this list of

0-MTypemessage

messages will be returned in any Submit OrderResponse message occurring after the call to thePreQualification Failed Handler occurred.

Plan Item Error Handlers

Overview

A Plan Item Error Handler is a customer-implemented component used to manage failed plan items. Duringfulfillment, the Orchestrator requests plan item execution from a Process Component. When executioncompletes, the Process Component may specify one of three result conditions:• Execution completed successfully• Execution completed, but with error• Execution did not complete

Successful execution results in the plan item being flagged as Complete and execution continuing with thenext items in the plan.

Error or incomplete execution means that the plan item has not been successfully completed and thereforethe next items in the plan should not begin execution until the conditions that caused the failure are rectified.

Orchestrator does not distinguish between an incomplete execution and an error response when determininghow to handle the failed plan item. Both are handled the same by invoking the Plan Item Error Handler andindicating which failure mode returned. The semantics of how to determine whether a Process Componentis incomplete or in error is left to a customer-specific interpretation and implementation. The implementationbetween Process Components and the Plan Item Error Handler should be consistent.

TIBCO® Fulfillment Order Management User's Guide

66 | Orchestrator

Plan Item Error Handler is an optional component in the architecture. Customers may choose to implementfull error handling within the Process Component. In that case it is not valid to return anything back toOrchestrator other than success. If anything else is returned to Orchestrator, there would be no handler toprocess the result and the plan remains in an execution state without progressing beyond the failed planitem.

Specification

Plan Item Error Handlers must conform to the following requirements in order to be a valid implementation.1. Receive event messages on a JMS queue.2. Interpret the Plan Item Failed Request event and determine how best to route the failed plan item for

further processing.3. If necessary, distinguish between incomplete execution and error response execution and interpret the

Error Handler field in the Plan Item Failed Request and direct the plan item to the correct handlingcomponent.

4. Create and send a response event on a JMS queue.5. In the response event, specify one of three possible actions that Orchestrator is to take in response to the

reply: retry, resume, or complete.

The three actions that can be specified are as follows:

The plan item is resubmitted to the Process Component to start over from the beginning. Thisoccurs immediately upon receipt of the Plan Item Failed Response event as all dependencies

Retry

have been previously satisfied. The Process Component is notified to re-execute the plan itemthrough a Plan Item Execute Request event. If Orchestrator has been automatically set up to retryfailed process components, and this retry fails as well, the retry count is not reset to zero. In otherwords, if the retry from a Plan Item Failed Handler response fails, then that failure is immediatelyredirected back to the Plan Item Failed Handler for processing again as a new failed plan item,and not automatically retried further.

The plan item is resumed in the Process Component from the point of failure. The implementationdetails of this are left for Process Component design. However it is conceivable that the Process

Resume

Component may choose to handle a resume the same as a full retry if it is not functionally possibleto resume execution from the point of failure. The Process Component is notified to resume theplan item through a Plan Item Activate event.

The plan item is considered to be completed and not resubmitted to the Process Component.Orchestrator marks the plan item as Complete and processing continues. Any dependencies on

Complete

the newly Completed plan item is evaluated and further plan items triggered as in the normalexecution.

The details of the Plan Item Failed Handler is left as a customer-specific implementation. An example of ahandler could be the following:1. Receive a Plan Item Failed Handler Request event message on a JMS queue by a BusinessWorks process.2. BusinessWorks starts a process instance in iProcess.3. The iProcess process model makes a service call out to Transient Data Store to retrieve the order.4. The iProcess process model creates a manual task and displays a form in a work queue for operations

support. The form displays the order as well as the details of the failure.5. Operations support reviews the task and chooses one of the following options:

a. Make changes to the order which allow the order to process successfully in the Process Component.The changed order is then saved in TDS and the plan item may be retried or resumed.

b. Make changes to back-end systems that allow the order to process successfully in the ProcessComponent. The plan item may be retried or resumed.

c. Implement the required functionality for the plan item manually in the back-end systems. The planitem may be completed.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 67

6. iProcess then invokes a BusinessWorks service that creates the Plan Item Failed Handler Response event,populates the event with the appropriate information, and flags the plan item to complete, retry, or resume.This event is then sent on a JMS queue to Orchestrator.

7. Orchestrator receives the Plan Item Failed Handler Response and processes it accordingly.

Plan Item Failed Request Event

Plan Item Failed Request Event is sent by Orchestrator in response to a failed plan item. It is received by thePlan Item Failed Handler for manual processing. It is an asynchronous event to a JMS queue. The responseis another asynchronous event on a different JMS queue.

Asynchronous eventEvent Type

QueueQueue orTopic

tibco.aff.orchestrator.provider.planItem.failed.requestDestination

The event has the following property:

DescriptionCardinalityTypeProperty

The value of the NODE_ID Java property that is set in thesetenv script of the Apache Tomcat instance, which is

OptionalStringoriginator

running the Orchestrator component. This property is sentby the Orchestrator in all the outbound JMS messages andis expected to be mapped back by the external systems(process components, feasibility providers, pre-qualificationfailure handlers, and error handlers) in the correspondingresponse messages.

The event has the following payload:

Figure 17: Plan Item Failed Request

The following table lists the details of the elements.

TIBCO® Fulfillment Order Management User's Guide

68 | Orchestrator

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Unique identifier to correlate the request messagewith a response message.

OptionalStringcorrelationID

Internal unique identifier for the order associatedwith the plan containing the failed plan item.

RequiredStringorderID

External unique identifier for the order associatedwith the plan containing the failed plan item.

RequiredStringorderRef

Internal unique identifier for the plan that containsthe failed plan item.

RequiredStringplanID

Plan item type for the plan item that failed. SeeAppendix A for the specification of this type.

RequiredTypeplanItem

Name of the error handler to invoke for this failedplan item. This value is either populated from the

RequiredStringerrorHandler

Process Component Model for the ProcessComponent if it exists or with the default errorhandler from the Orchestrator configuration.

Message type. See Appendix A for the specificationof this type. This is the list of messages as returnedin the Plan Item Execute Response Event.

0-MTypemessage

Plan Item Failed Response Event

Plan Item Failed Response Event is sent by Plan Item Failed Handler as a response to the failed plan item.Orchestrator receives the result and interprets the result accordingly. It is an asynchronous event to a JMSqueue.

Asynchronous eventEvent Type

QueueQueue or Topic

tibco.aff.orchestrator.provider.planItem.failed.replyDestination

The event has the following property:

DescriptionCardinalityTypeProperty

The value of the originator property in thePlanItemFailedRequest message, received from the

OptionalStringoriginator

Orchestrator, which should be mapped and sent back inthe response message.

The event has the following payload:

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 69

Figure 18: Plan Item Failed Response

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across function calls.OptionalStringbusinessTransactionID

Unique identifier to correlate the request message with aresponse message. Even though this field is marked as optional

RequiredStringcorrelationID

in the response schema, it is required for Orchestrator to beable to correlate the response with the correct version of thesubmitted order. Populate this field the same as correlationIDin the request message.

Internal unique identifier for the order associated with the plancontaining the failed plan item.

RequiredStringorderID

External unique identifier for the order associated with theplan containing the failed plan item.

RequiredStringorderRef

Internal unique identifier for the plan that contains the failedplan item.

RequiredStringplanID

Unique identifier for the plan item within the plan that failed.RequiredStringplanItemID

Flag indicating that the plan item should be retried.Required,Choice

Typeretry

Flag indicating that the plan item should be resumed from thepoint of failure.

Required,Choice

Typeresume

Flag indicating that the plan item should be marked asComplete and execution continue.

Required,Choice

Typecomplete

Message type. See Appendix A for the specification of thistype. If populated, this list of messages will be returned in any

0-MTypemessage

TIBCO® Fulfillment Order Management User's Guide

70 | Orchestrator

Submit Order Response message occurring after the call to thePlan Item Failed Handler occurred.

TIBCO® Fulfillment Order Management User's Guide

Orchestrator | 71

Chapter

2Automated Order Plan Development

This section describes the functions of TIBCO® Fulfillment Order Management Automated Order Plan Development

feature.

Topics

• Overview• Architecture• Model Deployment• Configuration• Features

TIBCO® Fulfillment Order Management User's Guide

Overview

Basic Automated Order Plan Development is the capability to create custom order plans that fulfill an order,taking into account the specifications of the required products and the products currently provided to acustomer.

A Product Model contains Bundles and Products Services. A Product model also contains concepts such assequencing and dependencies.

When an order is received, order lines are decomposed using a Product model. The product specification foreach order line is extracted from a product catalog by the decomposition component.

The product specification is required to create execution plan fragments. These execution Plan Fragmentdefine services, products, and resources required. For example, an order line may contain a bundle, whichmay be comprised of several products and services. Taking into consideration factors such as sequencingand dependencies, these execution plan fragments are then combined to create a single execution plan.

TIBCO® Fulfillment Order Management User's Guide

74 | Automated Order Plan Development

Architecture

Starting with FOM version 2.1.0, AOPD is a Java based component. The AOPD component is, by default,colocated with OMS. This simplifies the deployment and administration. It also improves the performance.

Deployment

AOPD can be deployed in different ways:• Colocated• Standalone• Custom

Colocated Mode

In colocated mode, the AOPD component is deployed on the same application server than OMS. This is thedefault mode, and it does not require any separate deployment. The file omsServer.war in$AF_HOME/apache-tomcat-[version]/webapps contains both the OMS component and the AOPD component.Even though AOPD is colocated on the same application server, most of the communication are made throughEMS.

Figure 19: AOPD in Colocated Mode

To configure FOM to use AOPD in colocated mode, set:

com.tibco.fom.aopd.deployMode=AOPD_colocated

in the file $AF_HOME/config/profiles.properties. It tells FOM to use the AOPD implementation that isin omsServer.war.

Standalone Mode

In standalone mode, AOPD is not running on the same application server than OMS. AOPD can run on anotherapplication server, either on the same machine or a separate machine.

To configure FOM to use AOPD in standalone mode, set:

com.tibco.fom.aopd.deployMode=AOPD_standalone

in the file $AF_HOME/config/profiles.properties. It tells FOM to not use the AOPD implementation thatis in omsServer.war.

Using shipped AOPD implementation

The FOM installation provides the AOPD implementation in a war file, ready to be deployed in an applicationserver. It can be used to setup another application server, either on the same machine (vertical scaling), or adifferent machine (horizontal scaling).

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 75

Figure 20: AOPD in Standalone Mode (Vertical Scaling)

Figure 21: AOPD in Standalone Mode (Horizontal Scaling)

The file is located $AF_HOME/oms/webapps/aopd.war. The file can be deployed in any application server.

The omsServer.war already contains an implementation of AOPD, so there is no need to deployaopd.war in the same application server. The file aopd.war is provided for convenience, if user wantsto scale horizontally or vertically.

Using custom AOPD implementation

It is also possible to create a custom AOPD component, as long as it fulfills the EMS interface with the othercomponents. In a same way, the custom AOPD can be deployed, either on the same machine, or a differentmachine.

To configure FOM to use AOPD in custom mode, set:

com.tibco.fom.aopd.deployMode=AOPD_custom

in the file $AF_HOME/config/profiles.properties. It tells FOM to not use the AOPD implementation thatis in omsServer.war.

Figure 22: Custom AOPD in Standalone Mode (Vertical Scaling)

TIBCO® Fulfillment Order Management User's Guide

76 | Automated Order Plan Development

Figure 23: Custom AOPD in Standalone Mode (Horizontal Scaling)

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 77

Model Deployment

Two type of models, Product and Action, have to be loaded in AOPD. They are loaded in AOPD using EMS.AOPD has two listeners, one for each model. The Action and Product model listeners are active whetherAOPD is deployed in standalone and colocated mode.

Additional listeners, Execution Plan and Amendment are active when AOPD is in standalone mode. Incolocated mode, there is direct API call from AFI to AOPD bypassing the queues and listenersconfiguration for Execution plan and Amendment plan requests.

AOPD stores Action and Product models into the OMS database (data_model table) for both online andoffline loading. AOPD, on startup, loads Action and Product models directly from the OMS database.

Some repositories are created locally in AOPD and each server has its own copy of the repositories in the$AF_HOME/aopd/work directory. This directory is created by the build script.

If something gets published online, AOPD gets the latest updates on Action and Product model listeners. Ifan existing product is loaded again then it is first updated in OMS database, deleted from local repositoryand then the incoming product model is loaded in AOPD.

TIBCO® Fulfillment Order Management User's Guide

78 | Automated Order Plan Development

Configuration

AOPD configuration is stored in different files in the directory $AF_HOME/config. The files can be eithermanually edited or accessed through the Web Configurator.

The AOPD configuration files are the following:

Main Configuration

The main AOPD configuration is stored in the file $AF_HOME/config/ConfigValues_AOPD.xml.

DescriptionParameter Name

Merges affinity UDF name (default: false)AffinityUDFNameMerge

To not merge certain UDFs during Affinity Sequencing, those UDFsshould be added as CSV in the variable (default: "")

CharacterisitcsWithoutAffinityPostfix

Within AOPD, if the sequence is -1, it will skip the product and all itsmandatory children in the Execution Plan (default: -1)

SkipItemSequence

Merges affinity item description (default: false)MergeAffinityItemDescription

Uses unconditional removal of child product (default: false)HierarchySingleUse

Enables affinity UDF parent (default: false)EnableAffinityUDFParent

List of internal UDFs to be skipped for affinity merging (default:"EPMR_ACTION_PROVIDE, EPMR_ACTION_UPDATE,

UDFList

EPMR_ACTION_CEASE, EPMR_ACTION_WITHDRAW,COMPENSATE_PROVIDE, COMPENSATE_UPDATE,COMPENSATE_CEASE")

Enables extended behavior for PDO/MDO and LinkID mapping(default: false)

EnableBiDirectionalLinkID

Allows Multiple Required Products for the same link ID (default: false)AllowMultipleRequiredProducts

Ignores First child dependency for source product in PDO relationship(default: false)

IgnorePDOFirstChildDependency

Configurable handling for PCO conflict (default: "Apply")HandleConflict

Include only the orderline for attribute based decomposition(default:false)

ABDProductOrderline

Include plan item udfs for evaluating attribute based decomposition(default:false)

ABDIncludeCharacteristics

Enables COMPENSATE and RESTART behavior in case of the requiredEPMR characteristic that is not present in the product model.

CompensateRestartForNoEPMRChar

Enables the backward compatibility for Date Shift amendment togenerate comp redo tasks (default: false)

EnableDateShiftCompRedo

Enables the backward compatibility for udf change amendment usingMODIFICATION_IDENTIFYING_ATTR (default: false)

EnableModificationIdentifyingAttribute

Enables the backward compatibility of NO dependency in theCOMPENSATE plan item on the existing plan item being cancelled.

NoDependencyInCOMPPlanItems

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 79

Logs

The AOPD logs are configured in the file $AF_HOME/config/AOPDLog4j.xml.

Integration with Orchestrator

The integration between AOPD and Orchestrator is configured in the file$AF_HOME/config/ConfigValues_OMS.xml, in the category called Orchestrator-AOPD Integration Configuration.This configuration can be accessed and modified using the Web Configurator.

DescriptionParameter Name

Name of the OPDRequest from Orchestrator receiver queue (default:tibco.aff.orchestrator.provider.order.opd.request)

OPDRequest from Orchestratorreceiver queue

Number of the OPDRequest from Orchestrator receiver (default: 3)OPDRequest from Orchestratorreceiver count

Name of the ExecutionPlanNewRequest to AOPD sender queue (default:tibco.aff.ocv.events.plan.new.request)

ExecutionPlanNewRequest toAOPD sender queue

Name of the ExecutionPlanAmendRequest to AOPD sender queue(default: tibco.aff.ocv.events.plan.amend.request)

ExecutionPlanAmendRequest toAOPD sender queue

Name of the ExecutionPlanNewResponse from AOPD receiver queue(default: tibco.aff.ocv.events.newplan.reply)

ExecutionPlanNewResponse fromAOPD receiver queue

Number of the ExecutionPlanNewResponse from AOPD receiver(default: 3)

ExecutionPlanNewResponse fromAOPD receiver count

Name of the ExecutionPlanAmendResponse from AOPD receiver queue(default: tibco.aff.ocv.events.amendplan.reply)

ExecutionPlanAmendResponsefrom AOPD receiver queue

Number of the ExecutionPlanAmendResponse from AOPD receiver(default: 3)

ExecutionPlanAmendResponsefrom AOPD receiver count

Name of the OPDResponse to Orchestrator sender queue (default:tibco.aff.orchestrator.provider.order.opd.reply)

OPDResponse to Orchestratorsender queue

Should the inventory be merged in the AOPD request (default: false)Merge inventory in AOPD request

TIBCO® Fulfillment Order Management User's Guide

80 | Automated Order Plan Development

Features

Autoprovision

Autoprovision is a condition that determines the relationship between a parent product and a child product.The relationship can be either be Static or Dynamic. Autoprovision flag determines whether the product ismandatory or not. For instance, consider a product A having a child product B, which has AutoProvision setas TRUE.

Static: If Autoprovision is set to TRUE, then the product is considered to be a static bundle and the child isautomatically be assumed to be a part of the order. This indicates that the child product is implicitly assumedto be on the order no matter there is an order line with that product.

Example: Consider bundle B comprised of products P1 and P2.• AUTOPROVISION flag is TRUE between B and P1.• AUTOPROVISION flag is FALSE between B and P2.

When bundle B is ordered, P1 will be provisioned automatically though it is not in the order line.

This process of order fulfillment is known as Implicit Fulfillment.

Dynamic: Auto Provision is set to FALSE. This indicates that the child product must be explicitly includedin the order.

The product diagram shows the mandatory products with solid lines (Autoprovision TRUE, Static bundle)and are included in the order automatically. Otherwise, the products need to be ordered separately, whichis a Dynamic bundle feature.

The instanceOptional field is not used during plan generation in AOPD.

Dynamic Bundles

Dynamic Bundles allows for a bundle to be modeled using a product hierarchy in a product catalogue anditems are selected by the user and then submitted for order plan development. An example would be wherea bundle is modeled to have mandatory items and optional items and the customer needs to select the options.

The optional products are specified as specific order lines within the order. The bundle is also specified as anorderline but the decomposition component recognizes the options belonging to the parent bundle.

The mandatory products are automatically added for order planning.

Any required products will be validated as part of validation to ensure the basket or the customer image hasthe required product before any decomposition occurs.

It is possible to reuse the common products having Autoprovision=false using LinkParentID andLinkedParentID UDFs in the orderline. The LinkParentID-LinkedParentID and LinkID UDFs are used todefine PCO-tree, although the LinkParentID-LinkedParentID UDF has the higher priority.• Link child to parent based on LinkParentID-LinkedParentID if present. Else,• Link child to parent based on LinkID if present. Else,• Link child to parent randomly.

For example, consider the following product model:

T-COM Wireline --> (PCO) Additional Voice Service(autoproivision=false)

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 81

T-COM Wireline --> (PCO) Tarrif1(autoproivision=false)Additional Voice Service --> (PCO) Tarrif1(autoproivision=false)

Therefore, the order can be:

LinkedParentIDLinkParentIDProductOrderline Number

T-COM WirelineT-COM Wireline1

T-Com WirelineAdditional VoiceService

Additional Voice Service2

Additional VoiceService

Tarrif1Tarrif13

T-Com WirelineTarrif1Tarrif14

The LinkParentID-LinkedParentID UDFs are added for orderline number 2 in the following format to adddependency between OrderLine 2 and OrderLine 3:

<ord1:udf> <ord1:name>LinkParentID</ord1:name> <ord1:value>Tarrif1</ord1:value> </ord1:udf> <ord1:udf> <ord1:name>LinkedParentID</ord1:name> <ord1:value>Additional Voice Service</ord1:value> </ord1:udf>

This change is backward-compatible. To use the LinkID functionality, do not add theLinkParentID-LinkedParentID UDFs in the orderline.

Static Bundles

This allows for a bundle to be modeled using a product hierarchy in the catalogue, with the bundle onlycontaining mandatory options. An example of this would be a bundle with mandatory products and whena customer orders this bundle all the dependent products are provisioned without the customer needing toselecting any more products.

Time Dependency

The decomposition component has the ability to provision an execution plan for a given order based uponthe time constraints, if any, placed on the products within that order e.g. it determines when a particularproduct execution should be started. This time constraint could apply to an individual plan item within anexecution plan or to the entire execution plan. Time dependency will be added in each plan item if therequiredByDate specified in order is in future.

Time dependency defines the absolute time when the particular plan fragment starts execution. It is calculatedon the basis of requiredByDate present in either the Orderheader or OrderLine. The expected behaviour forthe required by date is as follows1. If requiredByDate is set on the order level, the start time dependency applies to all plan items with no

leading dependencies

2. If requiredByDate is set on the order line level only, the start time dependency applies to plan items forthat order line which have no leading dependency

3. If requiredByDate is set on the order header level and on the order line level, the following behaviourapplies:a. If requiredByDate in Order Header is later than requiredByDate in line item, then the start time used

is the one at order level

b. If requiredByDate in Order Header is earlier than requiredByDate in line item, then the start time usedis the one at order line level.

TIBCO® Fulfillment Order Management User's Guide

82 | Automated Order Plan Development

RequiredOnDate is no longer used or supported.

Product Specification Field Decomposition

Each product has a modeled set of characteristics within a product catalogue. When a product is decomposedto a plan item, the default and the instance characteristics are copied over into the User Defined Fields (UDFs)of every plan item. This allows the information to be reused later when the plan item is executed.

For example, consider a product "Line Access 5MB" has characteristics modeled such as Speed=5, QOS=4,IPAccess=false. These are all modeled as instance variables. When an order is submitted for Line Access oris part of a bundle, the plan item uses the same instance characteristics copied as UDFs into the plan item.When the plan item is executed, the UDFs can be passed to the service call.

When an order is made the characteristics are visible as UDFs for each order line. When you submit the order,the UDFs are converted into UDFs for the new plan items and if the order line is a bundle then those itemscan have UDFs as well which are copied to the execution plan. All theses UDFs can be used later throughthe service call.

Custom Action Based Product Decomposition

The custom action provides flexible way to define products and product fulfillment by allowing productdecomposition and characteristic list inclusion. The ProductComprisedOf (henceforth, referred to as PCO)relationship enables you to model complex product hierarchies. This allows a product modeler to modelspecific product decomposition according to the specified action.

Irrespective of an action, all the PCO or Characteristic relationships are valid.

The following table describes the custom action for the PCO and Characteristic relationships:

Characteristic (C)ProductComprisedOf (PCO)

The characteristic is alwaysincluded as planItem UDFs

If C.ActionID=nullThe child product is always apart of the decompositionduring decomposition

IfPCO.ActionID=null

The characteristic is included ifthe following order action is

If C.ActionID=notnull

The child product is only addedif the following order action isspecified duringdecomposition:

order Action = the ActionID

IfPCO.ActionID=not

null specified duringdecomposition:

order Action = ActionID

Scenario for the Custom Action Based Product Decomposition

The following table describes how a custom action impacts the product decomposition:

This scenario is applicable for characteristic list inclusion based on custom action.

PlanOrderData Model Configuration

There are three planItems:OL=B(PROVIDE)Action repository has record with IDas HomeMove and recordtype as • BPROVIDE. Product B has PCO • P1relationship with P1, P2, P3 with • P2autoprovision=true

B depends on P1 & P2P1.PCO.ActionID=null

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 83

PlanOrderData Model Configuration

P1.PCO.ActionID=PROVIDEP1.PCO.ActionID=HomeMove

There are two planItems:OL=B(UPDATE)• B• P1

B depends on P1

There are two planItems:OL=B(HomeMove)• B• P3

B depends on P3

Sequencing

The product catalog defines the sequencing requirements between the fulfillment steps for various productsin a product offering.

When the order plan is being developed, the information in the product catalog is used such that the instancesequence defined for each sub-product and products which contain these sub-products translates to adependencies between Plan Fragments associated with each product/sub-product and the fulfillment happensin the correct sequence.

Sequencing is governed by certain rules on the Plan Fragments.

Fulfillment Order Management supports the action-based sequencing. This use case based sequence ofback-end systems is utilized in the decomposition to ensure back-end (process component) are called in thecorrect order. Based on the order line action, the following types of sequencing are used:

• PROVIDE• CEASE• UPDATE

PROVIDE Sequencing: This scenario occurs when the order line action is PROVIDE and all the sub productsuse the provide instance sequence number.

CEASE Sequencing: This scenario occurs when the order line action is CEASE and all the sub products usethe cease instance sequence number.

UPDATE Sequencing: This scenario occurs when the order line action is UPDATE and all the sub productsuse the update instance sequence number.

The following figure shows the sequencing for the products A, B and C.

TIBCO® Fulfillment Order Management User's Guide

84 | Automated Order Plan Development

Figure 24: Sequencing for the products A, B and C.

Sequence number is the relationship attribute value based on the action, viz, PROVIDE, CEASE,UPDATE.

For example, a bundle is comprised of Product A, Product B and Product C, with PROVIDE sequencing setto 2, 1 and 3 respectively. When an order plan is developed, Product B is executed first, followed by ProductA and then Product C.

Figure 25: Order Plan Execution Sequence

Similarly, a CEASE sequencing order can also be defined for the same Product Bundle with a sequencing of3, 1, and 2 for products A, B, and C respectively. In this manner, the order may be fulfilled in the correctsequence taking into account what action needs to be performed.

The Order lines are converted into plan items during the plan development using the information in theproduct catalogue. The diagram explains the sample product model and its components (Product Offerings).This diagram is used to briefly explain the different Plan Development Concepts (for details, see AutomatedOrder Plan Development on page 73).

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 85

Figure 26: Sample Product Model

The table describes the diagram elements of the Product Model Hierarchy.

DescriptionDiagram Element

Product entity.

The arrows represent the ProductComprisedOfrelationship in the product catalogue betweenBUNDLE and a group of products. Thus, thediagrams states that:• BUNDLE is comprised of the product

Broadband.• BUNDLE is comprised of the product VOIP.

The Broadband Product Offering (PO) containsthe following mandatory products:• Telephone• UserID• Line ActivationThe dotted line indicates that the Modem is anoptional product.

TIBCO® Fulfillment Order Management User's Guide

86 | Automated Order Plan Development

DescriptionDiagram Element

The VOIP Product Offering (PO) contains thefollowing mandatory products:• VOIPTV• COMBOX• UserID

The UserID products has two parents.

Product Model Description:

The product BUNDLE is comprised of the two Product Offerings (PO):• Broadband.• VOIP.

The Broadband product offering contains the products as the Telephone, UserID, and Line Activation as themandatory product. Modem is an optional product.

VOIP has the COMBOX, UserID, and VOIPTV as part of its technical products.

The product UserID, here has two parents - Broadband and VOIP. The product UserID has single use recordattribute set to true with both its parents.

Using (relationship) sequencing, all the child products of the BUNDLE would be fulfilled or processed inparallel, and all must complete before the entire BUNDLE can be fulfilled. Often, additional sequencing isrequired within elements at the same hierarchy level in the model. This can be accomplished by providingsequence numbers on the ProductComprisedOf relationship.

Product Model Description in Relation to the Sequencing Feature:

The correct fulfillment sequencing of the product plan execution as per the diagram is:1. The UserID is created.2. The order on the Telephone and COMBOX is processed. The Telephone and COMBOX is installed.3. The Line Activation is completed.4. Modem is installed.5. VOIPTV is installed.6. Broadband Product Order and VOIP Order is completed.7. The entire BUNDLE order (Broadband and VOIP) is completed.

Taking the product as an example, the table shows the sequencing of the products:

Product OfferingParent Product

UserIDBUNDLE

Telephone/COMBOXBUNDLE

Line ActivationBUNDLE

Modem Installation (optional)BUNDLE

VOIPBUNDLE

BUNDLE Order completeBUNDLE

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 87

Inventory

Inventory Management consists of services exposed by Fulfillment Management Services and OCV enginesbased on TIBCO Business Events. The Fulfillment Management Services is integrated with Fulfillment OrderManagement and interacts with OCV engine through events. These events are send through the JMS channels.

Being a useful component, inventory management does the following:• Maintains a history of all installed/ordered products. This information can be used to validate product

compatibility and product pre-requisite requirements on orders. These products can be anything configuredin the product catalogue, such as, bundles, tariffs, services, and devices.

• Traces the inventory hierarchy - relationship between a customer and a subscriber, thus enabling the bulkoperation of extracting inventory items for a customer and all its subscribers.

Inventory Items can be associated with specific customers or subscribers. Inventory Items has a statusassociated with them that allow lifecycle management capability for individual installed items.

Inventory uses the inventory items to validate the order. Dependencies between products are evaluated andthe installed products can fulfil ProductRequiredFor and ProductComprisedOf relationships with items onan order. Likewise, products in an order are compared with the installed products for Compatible andIncompatible relationships to ensure that incompatible products are not ordered.

The following operations talk to the inventory, and implemented as a Service:

DescriptionInventory Operation

AssignInventoryItem

AssignInventoryItems

GetInventoryItem

GetInventoryItems

GetUserStatus

ReassignInventoryItem

ReassignInventoryItems

RemoveInventoryItem

RemoveInventoryItems

RollbackInventoryItem

RollbackInventoryItems

UpdateInventoryItem

UpdateInventoryItems

Inventory Item Lifecycle

The lifecycle of an inventory item comprises three major phases:• Provide• Update• Cease

TIBCO® Fulfillment Order Management User's Guide

88 | Automated Order Plan Development

The brief description of each of the phases is given below.

Provide

When an order is submitted with a 'provide' order line, the AssignInventoryItem operation creates a newentry in the inventory and the inventory item is associated with the subscriber ID.

If no Subscriber ID is found, the inventory item is associated with the customer from the order header.

The initial status of the inventory item is DRAFT. Each added inventory item has a unique Inventory IDgenerated and returned to the calling application. This Inventory ID is added to the UDFs for the correspondingorder line. When an order is processed for a provide order line, the inventory item is updated using theUpdateInventoryItem operation and the Inventory ID stored in the UDF. The inventory item status is updatedto ACTIVE and the StartDate should be updated to the current date and time. All the UDFs on the order lineare copied to the inventory component. This allows any changes made during the provisioning process tobe reflected in the installed/ordered products.

Update

When submitting an order with an 'update' order line, the Inventory ID for the product (which is beingupdated) must be submitted as a UDF on the order line. In the beginning of the order process, the inventoryitem is updated using this Inventory ID to add a new order to the order history using UpdateInventoryItemoperation. After updating an order, each inventory item is updated using UpdateInventoryItem operationand the Inventory ID stored in the UDF. The inventory item status remains ACTIVE and the StartDate shouldnot be updated. All the UDFs on the order line are copied to the inventory component. This allows anychanges made during the provisioning process to reflect in the installed/ordered products.

Cease

When submitting an order with a 'cease' order line, the Inventory ID for the product being ceased must besubmitted as a UDF on the order line. At the start of the order process, the inventory item is updated usingthis Inventory ID to add a new Order to the order history using UpdateInventoryItem operation. Whenorder submission process is done with a cease order, the inventory item is updated using theUpdateInventoryItem operation. The inventory item status changes to WITHDRAWN and the EndDate isupdated to the current date and time. The UDFs for the inventory item should not be changed.

Inventory Concepts

Inventory concept is a description of a set of properties, which create a meaningful unit, when groupedtogether. These concepts can be organized in a hierarchical structure.

The Inventory section contains concepts used to store the Inventory data.

The following representational Entity-Relationship diagram shows the relationships between the Inventoryconcepts.

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 89

DescriptionInventory Concepts

Represents Inventory of a subscriber or a customerInventory

InventoryItems store individual products from Order linesInventoryItem

This concept holds details of the Order line used to order the product,or update its state later

InventoryOrderData

The UDF holds all the customer defined fields (name-value pairs)InventoryItemUDF

Holds data on Customers and NonCorporateSubscribersInventoryHierarchy

Holds data on a customer and its corporate subscribersInventoryCustomer

Contains corporate subscriber ID and statusInventoryCorporateSubscriber

Contains non-corporate subscriber ID and statusInventoryNonCorporateSubscriber

Holds count of products for a customer or a subscriberInventorySummary

Contains current count of a given productInventoryProductCount

TIBCO® Fulfillment Order Management User's Guide

90 | Automated Order Plan Development

Delta Provisioning

Delta Provisioning ensures that products which have been defined for 'single use' are not provisioned morethan once for a given order. The combination of the order line action of the products is used to determinehow the products are provisioned.

Single Use

Single Use ensures that if the products have same product ID and have been defined for single use with theorder line actions as PROVIDE then those products are not provisioned more than once. It deletes one of theinstances and ensures that the dependencies point to the single instance, which still remains in the plan. Thisis done for products with the same parent only.

E.g. for a batch of phones typically we would only want to only send one shipment.

Product Model description in relation to Single Use:

The Product Model diagram shows the Single Use feature. If the Order is a 'BUNDLE in a single Order line',the UserID is generated only once, although it has been ordered twice by the products Broadband and VOIPrespectively.

If the product exists more than once on the order, then it is only included once in the final plan. If the productexists on the order and in the inventory, it is not included in the plan.

Provide Single Use

The product catalog contains 2 bundles BundleA and BundleB. BundleA contains 2 sub products A and B.Both the sub products have sequence set to “1” and auto provision set to “True”. A has the attribute singleuse set to “True” while B has the attribute set to “False”. BundleB contains 2 sub products A and C. Both thesub products have sequence set to “1” and auto provision set to “True”. A has the attribute single use set to“True” while C has the attribute set to “False”.

The order sent into AFF will contain 2 order lines. Order line 1 contains BundleA with order line actionProvide. Order line 2 contains BundleB with order line action Provide. Both the order lines will contain aUDF with name SingleUseID and the value will be the same for both BundleA and BundleB.

The generated plan will contain only one instance of sub product A. BundleA which will contain a dependencyto sub product A and B. BundleB will contain a dependency to sub product A and C. The UDFs will not bemerged into the retained product.

Figure 27: Single use (Provide-Provide)

Cease Single Use

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 91

This functionality ensures that if the products have same product ID and have been defined for single usewith their order line actions as PROVIDE and CEASE then those products are not provisioned more thanonce. It deletes instance which has its order line action as CEASE, mark the action as UPDATE and also ensurethat the dependencies point to the PROVIDE instance which still remains in the plan. This is done for productswith the same parent only. Single Use is modeled in product model by setting record attribute single use astrue.

In this scenario the Cease instance of the product will be removed from the plan. Bundle A will have adependency to both sub product A and B. BundleB will have a dependency to both sub product A and C.The instance of A still left in the plan will have a new line action of UPDATE. The UDFs will not be mergedinto the retained product.

The plan fragment as well as the plan description will be set to the Update fragments from the productinformation.

In cases where the sub product A has dependent products all those dependent products will be madedependent to the remaining instance of product A.

Figure 28: Single use (Provide-Cease)

Update Single Use

This functionality ensures that if the products have same product ID and have been defined for single usewith their order line actions as PROVIDE and UPDATE then those products are not provisioned more thanonce. It deletes instance which has its order line action as PROVIDE and also ensure that the dependenciespoint to the UPDATE instance which still remains in the plan. This is done for products with the same parentonly.

In the following scenario the Update instance of sub product A will remain in the plan. Bundle A will havea dependency to both sub product A and B. BundleB will have a dependency to both sub product A and C.The instance of product A will retain the line action of UPDATE. The UDFs will not be merged into theretained product.

The plan fragment as well as the plan description will be set to the Update fragments from the productinformation

TIBCO® Fulfillment Order Management User's Guide

92 | Automated Order Plan Development

Figure 29: Single use (Provide-Update)

Sequenced Single Use

In this scenario OfferingA contains both BundleA and BundleB which have been sequenced 2 and 1respectively. Since both bundles contain sub product A, this product will be merged into a single instance.BundleB will be the only product to contain a dependency to sub product A since it is the 1st product to beprovisioned in the plan. BundleA will have the dependency to sub product A deleted.

The UDFS will be merged as mentioned in the above scenarios. The lineIDs and EOL attributes will mergedas well with a comma as a separator.

Figure 30: Single use (Sequenced)

Inventory Single Use

This functionality ensures that if the inventory for the products which were already provisioned for a customeror the subscriber is ordered again with order line action as PROVIDE then those products are not provisionedagain. It deletes instance which has its order line action as PROVIDE and also ensure that the dependenciespoint to the parent instance, which still remains in the plan.

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 93

To use the functionality, the inventory must be linked to the subscriber or the customer . This is done bypassing a special UDF in the order line while submitting the order. The name of the UDF is SUBSCRIBER_IDand value is the name of the subscriber.

The assign inventory service exposed by the AFS component allows the external users assign inventory forcustomers against orders. These inventories are stored in the OCV engine. When an order for the samecustomer and product is made again, then the AOPD engine synchronizes the inventories for the customerfrom OCV and generates the plan accordingly.

Fulfillment Order ManagementInterface supplies the inventory to AOPD to be taken into account when plangeneration occurs or when a request is made for an execution plan.

In the following scenario the user already contains sub product A, B and C in their Install base. The subproduct will be removed from the plan since the user already has the product provisioned in their installbase. All products which have sub product A as a dependent child will have those dependencies cleanedfrom the plan.

Figure 31: Single use (Inventory)

The following table describes the global variable settings required for the AOPD and Fulfillment OrderManagement engines respectively:

BooleanValue

PathGlobal Variable

trueAFF/OfferConfigurationValidation/FlagsLoadInventory

trueMember1 > OMS AFI Configuration >

Orchestrator-AOPD Integration Configuration

Merge inventory in AOPD

request

For orders submitted without any inventory, you can assign a product inventory for a particular order inOCV by using AssignInventoryItem web service through OCV. The following snippet shows the sampleinventory assignment request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.tibco.com/AFF/OCV/services" xmlns:inv="http://www.tibco.com/AFF/classes/inventory"> <soapenv:Header/> <soapenv:Body> <ser:AssignInventoryItemRequest BusinessTransactionID="210"> <!--You have a CHOICE of the next 2 items at this level--> <ser:CustomerID>TIBCO</ser:CustomerID> <!--Optional:--> <ser:ProductID>CFS_VOIP</ser:ProductID> <ser:Status>ACTIVE</ser:Status> <ser:StartDate>2010-04-30T13:20:00-05:00</ser:StartDate> <inv:Order> <inv:OrderID>8ae1f619301c03fb01301ceb0007002d</inv:OrderID> <inv:OrderLineNumber>1</inv:OrderLineNumber> <inv:OrderLineAction>PROVIDE</inv:OrderLineAction> <inv:OrderDate>2010-04-30T13:20:00-05:00</inv:OrderDate> <!--Optional:--> <inv:Comments>test</inv:Comments> <!--You have a CHOICE of the next 2 items at this level-->

TIBCO® Fulfillment Order Management User's Guide

94 | Automated Order Plan Development

<inv:CurrentOwnerCustomerID>TIBCO</inv:CurrentOwnerCustomerID> </inv:Order> <!--Optional:--> <inv:UDFs> <!--Zero or more repetitions:--> <inv:UDF> <inv:Name>test</inv:Name> <inv:Value>test</inv:Value> </inv:UDF> </inv:UDFs> </ser:AssignInventoryItemRequest> </soapenv:Body></soapenv:Envelope>

When submitting a new order, provide the inventory ID in the orderline for the assigned product.

You must provide the same inventory ID, which is returned in the inventory response.

Thus, you can provide the inventory in AOPD through Fulfillment Order Management Interface, whilemaking a request for execution plan.

Unconditional Removal of Child Products

The hierarchy single use flag in ConfigValues_AOPD.xml enables the unconditional removal of child productsfrom the Plan. To enable this functionality, set the following flags:1. HierarchySingleUse = true (in AOPD).2. Merge inventory in AOPD request = true (in the OMS UI Configurator/ Member1/OMS AFI

Configuration/Orchestrator-AOPD Integration Configuration).

The HierarchySingleUse flag needs to be set for the Inventory Single Use functionality to work irrespectiveof Unconditional Removal of products. Unconditional removal of products removes all the child productsof a product deleted due to single use. The MergeInventory flag should be set to true even if products areremoved conditionally for inventory single use.

After implementing these settings, the HierarchySingleUse use case works for SingleUse as well asInventorySingleUse cases.

The HierarchySingleUse global variable is disabled by default (HierarchySingleUse = false) tocontinue with the default implementation. The HierarchySingleUse flag works for all Single Usecases i.e. SingleUse, CeaseSingleUse,UpdateSingleUse and InventorySingleUse.

Product Affinity (Plan Item Level)

The Product Affinity between different products on the same order allows the products to be grouped andfulfilled together through the execution of a single plan item. It can be termed as an order fulfillmentoptimization.

Generally, a plan item corresponding to an order line specifies a product to be fulfilled in the order. If anaffinity is specified between the products that are either being fulfilled implicitly as mandatory children, orordered explicitly as separate order lines, the individual plan items are grouped together into a single affinityplan item during plan optimization in AOPD. Thus, the corresponding products are fulfilled through theexecution of this single plan item.

The product affinity is specified in the product catalogue in one of the following two different ways:• By specifying the affinity type and action specific plan fragments attributes in the AffinityGroup tab in

PRODUCT repository• By assigning the plan fragments using ProductHasXXPlanFragment relationships and specifying the

affinity specific relationship attributes

The XX in relationship name refers to actions, such as PROVIDE, CEASE, UPDATE and CANCEL.

AOPD recognizes the affinity and combines the plan items corresponding to the order lines depending uponthe following two main conditions:

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 95

• If the plan fragments defined in the product catalogue for the ordered products are the same• If the affinity type defined in the product catalogue for the ordered products is the same (InLink or

CrossLink)

UDF Data Handling

Affinity groups together plan items for different order lines into a single plan item. AOPD is also responsiblefor populating the UDFs that are associated with these plan items. The potential exists for the same UDF tobe present on different order lines, all values must be available in the plan and the relevant order linesidentified.

The following data handling rules must be implemented:

The following table lists the Sample Order Line Data representing the order lines being affinity grouped.The Sample Plan Item Data represents the output affinity grouped plan item for those order lines.

Sample Plan ItemData

Sample Order LineData

OutcomeRuleSrNo

UDF Name =ServiceID:1 UDFValue = 1234

Order Line = 1 UDFName = ServiceIDUDF Value = 1234Order Line = 2 Does

UDF name is theoriginal UDF nameconcatenated with theorder line number.

UDF exists on only one of theorder lines being affinity grouped

1

not contain ServiceIDUDF

Value is the originalUDF value.

UDF Name =ServiceID:1,2 UDFValue = 1234

Order Line = 1 UDFName = ServiceIDUDF Value = 1234Order Line = 2 UDF

UDF name is theoriginal UDF nameconcatenated with theorder line number as a

UDF exists on more than one ofthe order lines being affinitygrouped, but not all order lines.UDF value is the same on allorder lines.

2

Name = ServiceIDUDF Value = 1234

comma-separated list.Value is the originalUDF value. Order Line = 3 Does

not contain ServiceIDUDF

UDF Name =ServiceID:1,2,3 UDFValue = 1234

Order Line = 1 UDFName = ServiceIDUDF Value = 1234Order Line = 2 UDF

UDF name is theoriginal UDF name.Value is the originalUDF value.

UDF exists on all order linesbeing affinity grouped. UDFvalue is the same on all orderlines.

3

Name = ServiceIDUDF Value = 1234Order Line = 3 UDFName = ServiceIDUDF Value = 1234

UDF Name =ServiceID:1,2 UDF

Order Line = 1 UDFName = ServiceID

UDF is created foreach unique UDF

UDF exists on more than oneorder line being affinity grouped.

4

Value = 1234 UDFUDF Value = 1234value, with theUDF value is different ondifferent order lines. Name = ServiceID:3

UDF Value = 6789Order Line = 2 UDFName = ServiceIDUDF Value = 1234

corresponding namecontaining the originalUDF name

Order Line = 3 UDFconcatenated with theName = ServiceIDUDF Value = 6789

order line numbers asa comma-separatedlist.

TIBCO Fulfillment Order Management supports the following types of product affinities:

TIBCO® Fulfillment Order Management User's Guide

96 | Automated Order Plan Development

Inlink

The Inlink Affinity can be defined between the products at the same level in a bundle.

Figure 32: Inlink Affinity

As shown in the figure, the InLink affinity can be defined between the Product B and Product C for PROVIDEaction by specifying the affinity type as InLink. The PROVIDE plan fragment is defined as PC_PROVIDE_BC.

For the InLink affinity, the LinkID UDF having exactly the same value must be passed in the order lines.

In addition to the two conditions, AOPD also checks the following conditions for the InLink affinity:1. If a value of the LinkID UDF in the plan items, which is propagated from the order lines to be merged,

is exactly the same.2. If the dependentOn (parent product) plan item for the plan items to be merged is exactly the same.

If these conditions are fulfilled, the plan items are combined into a single affinity plan item containing the planfragment from any of the merging plan items, since it is the same for all of them.

Crosslink

The Crosslink Affinity is defined between the products at any levels across the bundles.

In the Product Model diagram, the products Telephone and COMBOX can have CrossLink affinity betweenthem. While order fulfillment process, both these technical products would be installed and configured inone go through the affinity grouped single plan item.

AOPD does not check any additional conditions for CrossLink affinity.

Affinity applies to the order plan development and this element is used to determine what plan fragmentsare executed for the product when affinity grouping is active. Affinity Plan Fragments XSD is illustrated as:

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 97

Figure 33: Affinity Plan Fragments XSD

The following table explains the Affinity Plan Fragements Data Model.

ExampleDescriptionElement TypeElement Name

Plan fragment canceltype.

String (Optional)planFragmentUniqueId_CANCEL

EP_BUNDLE_CANCELNO_RECIPROCAL_ACTION

Name of the planfragment to execute whencancelling this product.

String (Optional)planFragmentUniqueId_CANCEL/name

Product 1 CancelDescription of the planfragment to execute whencancelling this product.

String (Optional)planFragmentUniqueId_CANCEL/description

Plan fragment providetype.

String (Optional)planFragmentUniqueId_PROVIDE

EP_BUNDLE_PROVIDEName of the planfragment to execute whenproviding this product.

String (Optional)planFragmentUniqueId_PROVIDE/ name

Product 1 ProvideDescription of the planfragment to execute whenproviding this product.

String (Optional)planFragmentUniqueId_PROVIDE/ description

Plan fragment cease type.String (Optional)planFragmentUniqueId_CEASE

EP_BUNDLE_CEASEName of the planfragment to execute whenceasing this product.

String (Optional)planFragmentUniqueId_CEASE/name

Product 1 CeaseDescription of the planfragment to execute whenceasing this product.

String (Optional)planFragmentUniqueId_CEASE/ description

Plan fragment updatetype.

String (Optional)planFragmentUniqueId_UPDATE

TIBCO® Fulfillment Order Management User's Guide

98 | Automated Order Plan Development

EP_BUNDLE_UPDATEName of the planfragment to execute whenupdating this product.

String (Optional)planFragmentUniqueId_UPDATE/name

Product 1 UpdateDescription of the planfragment to execute whenupdating this product.

String (Optional)planFragmentUniqueId_UPDATE/description

Affinity Sequencing

Affinity Sequencing is used to support the scenario for maintaining sequencing during affinity grouping.Affinity Sequencing was introduced during affinity RulesEngine (BusinessEvents) selects plan items atrandom which are then merged into a single plan item. Since items are selected at random during this process,sequencing is not maintained for plan items that must be in a sequence.

To make products available for affinity sequencing:• Affinity TYPE value for all products where sequence should be respected should be set to

"SequencedAffinity" in the affinity type• All order lines where affinity components are known to exist should have a UDF defined as

AffinitySequence and the value should be an integer

Depending on the AffinitySequence values being compared, the following actions are possible:1. itemA.AffinitySequence = itemB.AffinitySequnce

– If both items have dependent children the children from itemB will be copied to itemA– itemB parent will be updated with the plan item ID from itemA, thus making itemA dependent to its

own parent and the itemB parent– UDF values from itemB will be merged into itemA– Any item which has a reference to itemB will have that reference replaced with a reference to itemA– The instance of itemB will be deleted from the plan

Figure 34: Parallel Scenario

The figure depicts the scenario where the items to be affinity grouped are running in parallel. One of theitems in this case itemB will be deleted from the plan. The dependent items to itemB which are childB1and childB2 are made dependent to itemA. Then itemA is made dependent to parentB which is the parentto itemB.

2. itemA.AffinitySequence < itemB.AffinitySequnce– itemB will be merged into itemA– UDF values from itemB will be merged into itemA

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 99

– Any item which has a dependency to itemB will have that reference removed– all the children from itemB will be made dependant to itemB parent(s)– itemB will be deleted from the plan

Figure 35: Sequenced Scenario

The figure depicts an offering which has items that are in parallel as well as in sequence that need to beaffinity grouped. For items that are in parallel they are handled similar to the figure 1. For the item thatis in sequence itemC. It is dependent item offerB is made dependent to CommercialA which is the parentto itemC.

3. itemA.AffinitySequence > itemB.AffinitySequnce

• itemA will be merged into itemB• UDF's from itemA will merged into itemB• if itemA has dependent children those children will be copied into itemB and the parent item of itemA• Any item which has a reference to itemA will have that reference erased• itemA will be deleted from the plan

TIBCO® Fulfillment Order Management User's Guide

100 | Automated Order Plan Development

Figure 36: Items in Sequence

For all the above actions the following occurs in all of them:• EOL, Plan description and Line ID values will all be merged into comma separated values from itemA

and itemB• The planID will be updated with the affinity plan ID

When an order is submitted, the order lines for items which have Affinity should have theAffinitySequnce defined and updated.

To not merge certain udfs during Affinity Sequencing, those udfs should be added as a commaseparated values in the global variable CharacteristicsWithoutAffinityPostfix in the rules engine(AOPD).

Conditional Affinity

Conditional Affinity combines InLink and CrossLink affinities in a single affinity type and provides additionalflexibility. Affinity grouping enables different plan items to be grouped together based on the evaluation ofthe XPATH expression defined at the product catalog. The two affinity grouping types are:

Crosslink AffinityInlik Affinity

Affinity groups plan items having the same affinityplan fragment name

Affinity groups plan items having the same parentproduct share a common LinkID UDF value and havethe same affinity plan fragment name

The additional configuration fields and rules in conditional affinity are:

DescriptionField

Determines the type of affinity implemented.AffinityType• InLink• CrossLink• Sequenced Affinity• ConditionalAffinity

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 101

DescriptionField

Valid for Conditional type only. A String field containing an XPATH expressionthat evaluates to true or false based on data is in the order:

AffinityCondition

• If the expression is true, the product plan item is affinity-grouped• If the expression is false, then the product plan item is not affinity-grouped• If the field is blank, assume that the value is true• If the XPATH expression evaluates to anything other than the true or false,

AOPD fails, and returns an exceptionThe XPATH expression evaluates against the following data fields on the order:• Order Header UDF Name and Value• Order Line ProductID• Order Line Action and ActionMode• Order Line UDF Name and Value

The XPATH expression can also be defined against the following plan data fields:• planItem productID• planItem UDF name value• planItem Action

Valid for Conditional type only. The XPATH is evaluated on the Plan data and theorder data. A String field containing an xpath expression based on a data is in thefollowing order:

AffinityCorrelation

• All plan items that evaluate to the same AffinityCorrelation are grouped together• The field is functionally similar to the LinkID method of correlating plan items

in the InLink affinity. However, it allows correlation based on complexconditions without a restriction on the UDF names

• If the field is blank, a default LinkID value is shared by all other blankconfigurations

• If the XPATH expression evaluates to an empty string, the XPATH expressionis blank, or assume a default LinkID

The XPATH expression evaluates against the following order data fields:• Order Header UDF Name and Value• Order Line ProductID• Order Line Action and ActionMode• Order Line UDF Name and Value

The XPATH expression can also be defined against the following plan data fields:• planItem productID• planItem UDF name value• planItem Action

Valid for Conditional type only. A boolean field containing the value true or false:AffinityParentGroup• If set to true, the plan items with products sharing the same immediate parent

product are grouped together• If set to false, the parent product is not considered for grouping

Valid for Conditional type only. A boolean field containing the value true or false:AffinityActionGroup• If set to true, then only plan items with products that share the same action are

grouped together• If set to false, then action is not considered for grouping

TIBCO® Fulfillment Order Management User's Guide

102 | Automated Order Plan Development

DescriptionField

AffinityActionValue is considered for grouping when AffinityActionGroup is setto true. This is valid for Conditional type only. String field containing an XPATH

AffinityActionValue

expression that evaluates to a String based on data is in the following order: TheXPATH expression must evaluate to one of the following:• PROVIDE• UPDATE• CEASE• Empty StringIf the XPATH expression evaluates to anything other than these actions, then AOPDfails and returns an exception.• If the field is blank, or the return value from the XPATH expression is an empty

string, the remaining action rules must be applied.The XPATH expression is able to evaluate against the following data fields on theorder:• Order Header UDF Name and Value• Order Line Action and ActionMode• Order Line UDF Name and Value

The XPATH expression can also be defined against the following plan data fields:• planItem productID• planItem UDF name value• planItem Action

Provide plan fragment name for affinity grouped plan item. Only plan items withthe Provide action and the same value in this field are grouped together

AffinityProvide

Update plan fragment name for affinity grouped plan item. Only plan items withthe Update action and the same value in this field are grouped together

AffinityUpdate

Cease plan fragment name for affinity grouped plan item. Only plan items withthe Cease action and the same value in this field are grouped together

AffinityCease

Cancel plan fragment name for affinity grouped plan item. Only plan items withthe Cancel action and the same value in this field are grouped together

AffinityCancel

In the case where plan items with different actions are grouped together due to affinity, the following logicis used to determine what action to apply to the plan item. The following rules apply:1. If AffinityActionValue is specified, then the action of the plan item will be the result of evaluating this

xpath.2. If AffinityActionValue is blank, or evaluates to an Empty String, then the remaining rules will apply:

a. If all order lines have the same action, then the plan item action is the same as the order lines.b. If order lines have different actions, then:

a. If at least one order line has PROVIDE action, then the plan item will have PROVIDE action.b. Otherwise if at least one order line has CEASE action, then the plan item will have CEASE action.c. Otherwise, the plan item will have UPDATE action.

For details, see Fulfillment Catalog Product Catalog Guide.

Important 1) If XPath is defined against plan data, the format should be <Actual XPath> containingstring $var/PlanItem. For example, if you want to define the XPath for UDF name-value pairMSISDN=123, the XPath can be$var/PlanItem[productID='GSMLine']/udfs[name='MSISDN']/value/text().

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 103

XPath evaluates data from the planItem. Refer to the sample planItem xml.

2) If XPath is defined against the order data, the format should be <Actual XPath> containingstring $var/Order. Refer to Sample order XML

3) Default order data is considered for evaluation if XPATH does not contain $var/PlanItem.

Refer to Sample XPATHs on page 256 for XPATH definitions.

When AOPD returns a plan it indicates the action of the plan item. Under normal circumstances this mapsdirectly to the action of the associated order line that caused the creation of the plan item. In the case whereplan items with different actions are grouped together, the following logic is applicable to determine whataction to apply to the plan item.1. If AffinityActionValue is specified, then the action of the plan item will be the result of evaluating this

xpath.– If AffinityActionValue is blank, or evaluates to an Empty String, then the remaining rules will apply

2. If all order lines have the same action, then the plan item action is the same as the order lines.3. If order lines have different actions, then:

– If at least one order line has PROVIDE action, then the plan item will have PROVIDE action.– Otherwise if at least one order line has CEASE action, then the plan item will have CEASE action.– Otherwise the plan item will have UPDATE action.

Conditional Affinity Sample

A product model is having two parents:• Parent_A• Parent _B

Consider a product model where conditional affinity is defined at all the child products:• Child_A1• Child_B1• Child_B2

Figure 37: Conditional Affinity

The XPATH defined in the product model is evaluated against the submitted order schema.

The following table describes the attribute-based conditional affinity scenarios:

TIBCO® Fulfillment Order Management User's Guide

104 | Automated Order Plan Development

Order PayloadSample XPATH ExpressionsAttribute

<ord1:udf>exists($var/Order/OrderHeaderUDF[name=UDFNAME

and value="UDFVALUE"])

AffinityCondition

<ord1:name>UDFNAME</ord1:name><ord1:value>UDFVALUE</ord1:value></ord1:udf>

<ord1:line>$var/Order/orderlines[productID=

'Child_A1']/ OrderlinesUDF[name=

'UDFNAME']/ value/text()

AffintyCorrelation

<ord1:lineNumber>1</ord1:lineNumber>

<ord1:productID>Child_A1</ord1:productID>

<ord1:quantity>1</ord1:quantity>

<ord1:uom>1</ord1:uom>

<ord1:action>PROVIDE</ord1:action>

<ord1:actionMode>New</ord1:actionMode>

<ord1:udf>

<ord1:name>UDFNAME</ord1:name>

<ord1:value>UDFVALUE</ord1:value>

</ord1:udf></ord1:line>

Child_B1 and Child_B2 have immediate parent.The two will be affinity grouped when:AffintyParentGroup=true

AffintyParentGroup

<ord1:line>$var/Order/orderlines[productID=

'Child_A1']/OrderlinesUDF[name=

'UDFNAME']/value/text()

AffinityActionValue

TheaffinityAction <ord1:lineNumber>1</ord1:lineNumber>

Group must betrue <ord1:productID>Child_A1</ord1:productID>

<ord1:quantity>1</ord1:quantity>

<ord1:uom>1</ord1:uom>

<ord1:action>PROVIDE</ord1:action>

<ord1:actionMode>New</ord1:actionMode>

<ord1:udf> <ord1:name>UDFNAME</ord1:name>

<ord1:value>UDFVALUE</ord1:value>

</ord1:udf></ord1:line>

Configurable Handling of CrossLink +PCO Conflicts And Single Use +PCO Conflicts

Affinity can violate the product model PCO action-based sequencing when the provisioning of two or moreproducts must be grouped together through a single affinity plan item for execution but have different parentswhich provisioning must be sequenced in a specific order. The affinity plan item is executed for all parents

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 105

irrespectively of the PCO action-based sequencing which breaks product model and could lead to circulardependencies and missing dependencies.

System config parameters should be added to trigger the following behaviour:• Error: If Affinity and PCO conflict, stop and report an error.• Ignore: If Affinity and PCO conflict, ignore Affinity rule and apply only PCO.• Apply: If Affinity and PCO conflict, process with both rules applied but add dependencies.

This applies to all other Affinity types.

SingleUseHandling: Error | Ignore | Apply• Error: If single use and PCO conflict, stop and report an error.• Ignore: If single use and PCO conflict, ignore singleuse rule and apply only PCO.• Apply: If single use and PCO conflict, process with both rules applied but add dependencies.

The default is Apply.

Sort Plan

The sort plan functionality was implemented to sort the plan according to the subscriber for batch orderswith multiple subscribers contained within the plan.

The sort plan function is defined to sort the plan according to an attribute defined within the order. Thisfunction will make sure that products that belong to similar grouping attributes will follow each other in theGUI.

In scenarios where bulk orders for multiple subscribers are submitted into Fulfillment Order Managementthe subscriber ID will be used as the grouping mechanism. All the order lines will have a UDF defined withthe name SubscriberID. Once the entire plan has been generated all the plan items will be sorted accordingto the value for the subscriber ID UDF. This will ensure that all products for an individual subscriber willfollow one after the other. This will be followed by the next subscriber and so on.

Attribute Based Decomposition

This functionality provides the ability to define decomposition rules along the relationship path for products.The decomposition rule is defined as XPATH logic which grants the ability to apply the defined logic anywayalong the order. E.g. We can define that Copper Access or Fibre Access process component should only bein the plan if the Access Type in the order is Copper or Fibre.

In order for attribute based decomposition can be applied the following conditions need to be satisfied:1. DECOMPOSITION attribute needs exists in the product where the XPATH logic can be defined.

2. The XPATH logic must contain an exists() this is due to the XPATH logic will be evaluated to either trueor false. The logic could either be for a check of the UDFS or an existence of a particular product withinthe order.

A simple scenario for Attribute based decomposition is described below:

TIBCO® Fulfillment Order Management User's Guide

106 | Automated Order Plan Development

Figure 38: Attribute based decomposition product

A bundled offering (“A” in the above figure) will contain a characteristic for the type of access that thesubscriber can specify during order entry. In our figure above this will be the fulfillment of Product “E” orProduct “F”. The bundled offering will have an associated characteristic named “AccessType” where thevalue can either be “E” or “F”. For the fulfillment of access type E or F a unique execution plan will begenerated. The “DECOMPOSITION” characteristic for “F” and “E” will contain a relationship value with“AccessType” set to either “F” or “E”.

The Decomposition characteristic will be able to contain complex XPATH logic which can be used to determinewhich branch of the tree should be included in the final execution plan for the offering.

Our design will take into account the new product catalog characteristic called “DECOMPOSITION”. Thedecomposition engine will process this characteristic and determine which branch in the product hierarchyis required for the final execution plan. If in our order access type “E” is specified then branch “F” will notbe included in the execution plan and “E” will be included. If access type “F” is specified then “E” will notbe included in the execution plan.

XPath for attribute based decomposition can be used against the UDFs. The UDFs can come from orderlineor from product model characteristics. AOPD configuration flag "includeproductmodelcharacteristics" isused to include product model characteristics for xpath execution. By default product model characteristicsare not considered.

By default all the orderlines from the order will be considered to check against whom the Xpath should beexecuted. Conditionally it can also be made to execute only against the orderline from which product is beingdecomposed. AOPD configuration "includeonlyproductorderline" needs to be set to true in this case. Bydefault its false.

ProductDependsOn and ProductRequiredFor Relationships

ProductDependsOn relationship: The ProductDependsOn (PDO) is a product dependency relationship tosequence the associated target and source plan items. The PDO relationship allows flexible productdecomposition. This establishes a relationship between two products and is evaluated during the decompositionprocess.

ProductRequiredFor relationship: The ProductRequiredFor (PRF) relationship is a prerequisite relationshipfor a product to add a target plan item.

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 107

The ProductDependsOn (PDO) and ProductRequiredFor (PRF) relationships enable you to create productoffers without defining sequencing for the products. You can create ProductDependsOn relationship to lowerlevel products instead of using ProductComprisedOf links.

The PDO functionality provides a base behavior that permits to sequence plan items corresponding to productsrelated by PDO when:1. PDO source and PDO target product instances have no LINKID defined.2. PDO source and PDO target product instances have LINKID defined and have same LINKID value.

The feature can extend the base behavior and sequence additionally plan items corresponding to productsrelated by PDO when:1. PDO source product instance has LINKID defined and PDO target product instances have no LINKID

defined.2. PDO source product instance has no LINKID and target product instances have a LINKID defined.

A PDO source product instance can relate to multiple PDO target product instances using base and extendedcases so that following use cases are possible:• A PDO source product that has a LINKID defined and is related to a PDO target instances that has same

LINKID defined shall be also related to PDO target product instances that have no LINKID defined.• A PDO source product that has no LINKID defined and is relate to a PDO target instance that has no

LINKID defined shall be also related to PDO target product instances that have a LINKID defined. Bydefault for PDO sequencing, the base behavior is enabled. To enable the extended behavior set the"EnableBiDirectionalLinkID" to true,by default it is false.

By default only one instance of required product per LinkID is allowed in plan. If there is a need to overridethis behavior to include multiple instances of required product with the same LinkID, then the AOPD flag"AllowMultipleRequiredProducts" should be set to true. By default it is false.

The PRF adds the required plan item without dependency, if you create only PRF.

The PDO and PRF relationships have the following two relationship attributes:• Source Action• Target Action

The PRF relationship also has the third relationship attribute named ocvValidationReq. This is a boolean flagfor validation. Based on validation flag, AOPD adds product configured with the PRF relationship in theplan.

The PDO relationship also has the third relationship attribute named 'sequenceDirection'. The valid valuesof this attribute are either 'AFTER' or 'BEFORE'. This attribute will be paired with the provided values ofSourceAction and TargetAction. For each SourceAction and TargetAction, there will be a value defined forthe sequenceDirection attribute.• A 'BEFORE' sequence direction will create a dependency of the target product on the source product.• An 'AFTER' sequencing direction will create a dependency of the source product on the target product.

This is the default.

If no value is provided in the sequenceDirection attribute, the attribute defaults to 'AFTER," and thefunctionality works as it did before the introduction of sequenceDirection relationship attribute. This allowsbackward compatibility.

The value defined in the sequenceDirection attribute will create a dependency of the target product on thesource product or it will create a dependency of the source product on the target product.

If a PDO Source Product has a dependency on child products, then those child products will have a dependencyon the PDO target product by default. If there is a need to override this default behavior and set the dependencyof the source product directly on the target product, then value of the flag "IgnorePDOFirstChildDependency"needs to be set to true in the AOPD configuration file. By default this value is false.

TIBCO® Fulfillment Order Management User's Guide

108 | Automated Order Plan Development

Source and Target Attribute Values

The following table describes the different possible combinations:

TargetActionSourceAction

ProvideProvide

UpdateProvide

CeaseProvide

CancelProvide

ProvideUpdate

UpdateUpdate

CeaseUpdate

CancelUpdate

ProvideCease

UpdateCease

CeaseCease

CancelCease

ProvideCancel

UpdateCancel

CeaseCancel

CancelCancel

You can also define source action and target action to match the following combination using comma separatedvalues. For example

SourceAction: Provide, Provide, Update, Cease, Cancel, Cease

TargetAction: Update, Cancel, Provide, Update, Provide, Update

You can also define sequenceDirection to match the following combination using comma separated values.For example

SourceAction: Provide, Provide, Update, Cease, Cancel, Cease

TargetAction: Update, Cancel, Provide, Update, Provide, Update

SequnceDirection: After, Before, After, Before, Before, After

Dependency between planitems occurs when both the following occur:• The sequenceDirection attribute has valid values, i.e. either 'AFTER' or 'BEFORE.'• The number of sequenceDirection attributes match with the number of Source Actions and the number

of Target Actions.

There is only one target action for any given source action.

The following table explains the PDO and PRF relationships and their impact on orders and plans.

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 109

PlanOrderProduct Configuration

Two plan item (A and B) do notdepend on each other

OL1=ProductAProduct A has a PRF relationship withProduct B having source action andtarget action PROVIDE and PROVIDE

planItemA depends on planItemBOL1=ProductA(Action=Provide)OL2=ProductB(Action=Provide)

Product A has PRF and PDOrelationship with B and PRF and PDOhas source action and target actionPROVIDE and PROVIDE

planItemA depends on planItemBOL1=ProductAProduct A has PRF and PDOrelationship with B and PRF and PDOhas source action and target actionPROVIDE and PROVIDE

planItemA depends on planItemBOL1=ProductA(Action=Provide)OL2=ProductB(Action=Provide)

Product A has PDO relationship withB having source action and targetaction PROVIDE and PROVIDE

The following table explains PDO with Sequence direction and their impact on orders and plans.

PlanOrderProduct Configuration

Two planitem having planItemAdepends on planItemB

OL1=ProductA(Action=Provide)OL2=ProductB(Action=Provide)

Product A has PDO relationship withB having SA & TA as PROVIDE &PROVIDE. SequenceDirection isAFTER.

Two planitem having planItemBdepends on planItemA

OL1=ProductA(Action=Provide)OL2=ProductB(Action=Provide)

Product A has PDO relationship withB having SA & TA as PROVIDE &PROVIDE. SequenceDirection isBEFORE.

Three planitems having planItemAdepends on planItemB and planItemCdepends on planItemB

OL1=ProductA(Action=Provide)OL2=ProductB(Action=Provide)OL3=ProductC(Action=Provide)

Product A has PDO relationship withB having SA & TA as PROVIDE &PROVIDE. SequenceDirection isAFTER. Product B has PDOrelationship with C having SA & TAas PROVIDE & PROVIDE andSequenceDirection is BEFORE.

Three planitems having planItemBdepends on planItemA and planItemBdepends on planItemC

OL1=ProductA(Action=Provide)OL2=ProductB(Action=Provide)OL3=ProductC(Action=Provide)

Product A has PDO relationship withB having SA & TA as PROVIDE &PROVIDE. SequenceDirection isBEFORE. Product B has PDOrelationship with C having SA & TAas PROVIDE & PROVIDE andSequenceDirection is AFTER.

Dependent and Sibling Products

TIBCO Fulfillment Order Management provides the ability in the product catalog to indicate that a productis dependent on its peer [DEPENDENT_PRODUCT] or peer's hierarchy [SIBLING_PRODUCT].

The only difference between dependent products and sibling products is that the dependent product wouldnot add the peer product's children to be included in the subsequent southbound service calls while siblingproduct adds the peer's children on the southbound service calls.

TIBCO® Fulfillment Order Management User's Guide

110 | Automated Order Plan Development

The diagram shows the product model.

Figure 39: Data Model

P8 has a dependent product link to P7 and P6. This means that the process component corresponding to P8can use the output UDFs of P7 and P6 during the execution provided P7 and P6 have been ordered directlyor indirectly in the order and corresponding process components have been executed.

P3 has a sibling product link to P2. This means that the process component corresponding to P3 can use theoutput UDFs of P2, P4, P5, P6, P7, P8 and P9 during the execution provided P2 has been ordered directly orindirectly in the order and corresponding process components have been executed.

The 6 product characteristics as explained in the table below should be added in the product model definedin TIBCO Fulfillment Catalog or offline model xml. The dependent or sibling link can be defined for a productby creating the Characteristic relationship with one of the above relevant products [as per the scenario] withthe value of RelationshipValue attribute as the comma separated IDs of the dependent or sibling products.

DescriptionName

Dependent product characteristic for PROVIDE scenarioDEPENDENT_PRODUCT

Dependent product characteristic for CEASE scenarioDEPENDENT_PRODUCT_CEASE

Dependent product characteristic for UPDATE scenarioDEPENDENT_PRODUCT_UPDATE

Sibling product characteristic for PROVIDE scenarioSIBLING_PRODUCT

Sibling product characteristic for CEASE scenarioSIBLING_PRODUCT_CEASE

Sibling t product characteristic for UPDATE scenarioSIBLING_PRODUCT_UPDATE

For example, Dependent link for P8 in case of PROVIDE scenario can be specified by creating a Characteristicrelationship between P8 and DEPENDENT_PRODUCT with the value of RelationshipValue as "P6, P7".

Shared Attributes

This section describes about the Shared Attributes and its samples test scenarios.

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 111

Shared Attributes are used when two Products (parent to child and sibling) share the same attribute and itscorresponding value and an update in the value of one needs to be reflected in the other. If an attribute isdeemed as a shared attribute and when the value was passed on the order then during decomposition valueis copied to the other products based on the EvaluationPriority set on the other products.

EvaluationPriority

Multiple products can have same shared attribute. Hence, if value for a shared attribute needs to be mergedwith same shared attribute in other products, user needs to define the EvaluationPriority, which indicatesthe priority of merging the specified characteristic from the target Product.

During plan development process, AOPD checks if characteristic (i.e. attribute) is of type 'Shared'; if yes thenit checks the EvaluationPriority for the characteristic. If products mentioned on the EvaluationPriority havethe same shared attribute, then the value for the characteristic is taken from the product. If none of the productsmentioned on the EvaluationPriority have the same shared attribute OR EvaluationPriority is not defined,then the value is taken from order line (if passed in order line) or product model.

Second part of the Shared attribute definition mentions that update in the value of shared attribute in oneproduct needs to be reflected in other products having same shared attribute.

During execution, the Process Component may need to update the attribute (UDF) values. To update thevalue of a UDF, the Process Component calls setPlanItem on TDS mentioning the UDFs to be updated. ProcessComponent sends the following details for the UDF:

1. name - name of the UDF to update2. value - updated value3. flavor - 'output' (this indicates that Process Component has updated the value from set/get methods),

Input (this indicates that Process Component has updated the value from order line), Config (this indicatesthat Process Component has updated the value from Product model)

4. type - Shared (if UDF is of type Shared)

On the subsequent calls to getPlanItems on TDS (Process Component may make this call to get details suchas UDFs for plan items from TDS), TDS checks if requested plan items have any UDF (i.e. attributes) withtype as 'Shared'. If Shared UDFs are present then TDS checks the EvaluationPriority for that UDF.

For the products mentioned on the EvaluationPriority, for each product (in the order of priority) TDS checksif it contains the UDF with same name and flavor = output. If TDS finds such UDF then value from this UDFis returned. If EvaluationPriority is not defined OR products mentioned on the EvaluationPriority do notcontain the UDF with same name and "output" flavor then value from order line/product model is returned(i.e. merging is not done).

Shared Attributes - Sample Test Scenarios

This section describes about the simple cases to test shared attributes in different scenarios.

1. Publish Product Model. The processes should be running in Test harness.

Here is an example for shared attributes with value of one reflecting in the other.

TIBCO® Fulfillment Order Management User's Guide

112 | Automated Order Plan Development

Scenario 1:

For the above product model structure, submit order for SharedAttribute_B and SharedAttribute_B1. Referto Order Submission Process for order submission process. Send new value for the shared attribute in theUDF format and values for both the attributes.

The value of B should reflect in B1, which conforms with the explanation of the Shared Attributes.

Scenario 2:

Submit order and send new value for the shared attribute (in the UDF format). Through order submission,send values for both the attributes, SharedAttribute_B and SharedAttribute_B1. Using SetPlanItemRequestservice, set Shared Attributes value of B.

In this case also, the value of B should reflect in B1. Using the GetPlanItemrequest service for B1 returns anew value, which is reflected in B, thus corresponding value and an update in the value of one is reflectedin the other.

Intermediate Milestones Dependencies

The actual fulfillment of a product is done by orchestrating the back-end process components. By default,any process component has two milestones:1. START2. END

These milestones represent the starting and the end parts of it. There is a direct dependency between theprocess components due to sequencing of the products in the catalogue. This dependency is of typeEND-to-START, or once a process component is completely executed, then only the dependent processcomponent can start its execution as shown in the following figure:

Figure 40: END-to-START dependency

The process component EP_DEVICE_PROV can start only when EP_SERVICE_PROV is completed andEP_TARIFF_PROV can start only when EP_DEVICE_PROV is completed.

TIBCO Fulfillment Order Management also supports the following complex types of dependencies betweenthe executing process components:• Milestone to START Dependency• END to Milestone Dependency• Milestone to Milestone Dependency• Milestone without Dependency• Conditional Milestones Dependency

These dependencies are supported with the implementation of Intermediate Milestones within the processcomponent in addition to the START and END.

The functionality provides a base behavior that permits plan items to be sequenced corresponding to productsrelated by MDO when:1. MDO related product instances have no LINKID defined.2. MDO related product instances have LINKID defined and have same LINKID value.

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 113

This feature can extend the base behavior and sequence additionally plan items corresponding to productsrelated by MDO when:1. MDO related parent product instance has LINKID defined and child product instances have no LINKID

defined.2. MDO related parent product instance has no LINKID and child product instances have a LINKID defined.

An MDO related parent product instance can relate to multiple child product instances using base andextended cases so that following use cases are possible:• An MDO related parent product that has a LINKID defined and is related to a child instances that has

same LINKID defined shall be also related to MDO related child product instances that have no LINKIDdefined.

• An MDO related parent product that has no LINKID defined and is related to a child product instancethat has no LINKID defined shall be also related to MDO related child product instances that have aLINKID defined.

Milestone to START Dependency

START milestones of a process components has a dependency on the completion of an intermediate milestone(s)in another process component(s).

The following figure shows the Milestone to START dependency:

Figure 41: Milestone to START Dependency

END to Milestone Dependency

Intermediate milestone(s) in a process component has a dependency on the completion of the END milestone(s)in another process component(s).

The following figure shows the END to Milestone dependency:

Figure 42: END to Milestone Dependency

Milestone to Milestone Dependency

Intermediate milestones in a process component has a dependency on the completion of the intermediatemilestones in another process components.

The following figure shows the Milestone to Milestone dependency:

Figure 43: Milestone to Milestone Dependency

TIBCO® Fulfillment Order Management User's Guide

114 | Automated Order Plan Development

Milestone without Dependency

There can be intermediate milestones defined in a process component which does not have any dependencies.However, milestones in another process component may depend on any of these milestones.

The following figure shows the Milestone without any dependency:

Figure 44: Milestone without Dependency

These types of dependencies help manage the complex order fulfillment process. For instance, start activatingthe broadband service once the broadband device fulfillment reaches a certain status, say, INSTALLED.

The product model schema has been updated to support the milestones and dependency definitions. SeeTIBCO® Fulfillment Catalog Product Catalog Guide for newly added repository and relationships to support theintermediate milestones dependencies.

Conditional Milestones Dependency

The dependency between intermediate milestones can be conditional. This is specified using the relationshipattribute called Condition in TIBCO Fulfillment Catalog. It is represented in the product model as illustratedbelow:

Figure 45: Conditional Milestones Dependency

In this sample, the START milestone of EP_PROVIDE_11 is dependent on MILE1 of EP_PROVIDE_10, onlyif the specified condition is satisfied.

The condition syntax can be one of following three types:• Parent UDF Syntax• Child UDF Syntax• Match Parent-Child UDF Syntax

There is no provision to specify the XSLT statement in the condition as it is there for Attribute BasedDecomposition.

Note the following definitions:

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 115

• Parent: The plan fragment whose milestone has a dependency on another plan fragment. The parent UDFwill be referred to a UDF passed in the order line in the order for that product which will be propagatedinto the plan item for that order line.

• Child: The plan fragment on whose milestone a milestone in another plan fragment depends. The childUDF will be referred to a UDF passed in the order line in the order for that product which will bepropagated into the plan item for that order line.

In the plan illustrated above, EP_TEST_PROVIDE_11 [START] is dependent on EP_TEST_PROVIDE_10[MILE1]. It is assigned to PROD11 as PROVIDE plan fragment. PROD11 is the parent and PROD10 is child.

Parent UDF SyntaxValue:Parent(ParentUDFName=ExpectedValue)

The condition is satisfied only if there is a UDF in the parent plan item with the same value as passed in thecondition as "ExpectedValue".

Child UDF SyntaxValue:Child(ChildUDFName=ExpectedValue)

The condition is satisfied only if there is a UDF in the child plan item with the same value as passed in thecondition as "ExpectedValue".

Match Parent-Child UDF SyntaxMatch:ParentUDFName=ChildUDFName

The condition is satisfied only if the value of the UDF [ParentUDFName] in parent plan item is equal to thevalue of the UDF [ChildUDFName] in child plan item.

Order Amendment

Order Amendment allows the order, that is currently being fulfilled, to be modified for different parameterssuch as action, requiredByDate, and UDFs in the existing order lines. It also allows adding a new order linein the request. The parameters and their reason for change are mentioned as follows:• The parameter values passed in the original request was incorrect. The corrected values can be passed by

sending an amendment request.• The parameter values require a modification as per the change request from the end user. For example,

the bandwidth of a product named Internet Bundle is passed as a UDF named Bandwidth in the orderline. The bandwidth in the original order was 1 Mbps. When the order was being fulfilled, the customerrequested the bandwidth to be updated to 2 Mbps. This is done by sending an amendment request bychanging the value of the UDF named Bandwidth to 2 Mbps.

• An additional product required fulfillment while the current one is being fulfilled.

An order can be amended when it is in one of the following states:

If the order is amended in these states then it is calleda pre-plan development amendment, because the

START

SUBMITTED execution plan has not yet been created. In thisFEASIBILITY scenario, the execution plan generated for the

amendment request will be considered and executed.OPD

PREQUALIFICATIONFAILED

If the order is amended in these states it is post-plandevelopment amendment, because the execution plan

EXECUTION

SUSPENDED was already created and had begun execution. In thisERROR_HANDLER scenario, the existing plan requires modification and

merging with the plan that has been generated as perthe amendment request. Post-plan developmentamendment is the most frequently used amendment.

TIBCO® Fulfillment Order Management User's Guide

116 | Automated Order Plan Development

An order cannot be amended when it is in either of the FINAL states:• COMPLETE

• CANCELLED

• WITHDRAWN

Amendment Workflow

Since an order amendment involves the modification of the current execution plan, a predefined process isadopted. The predefined process is as follows:1. Upon accepting an order amendment request, the Orchestrator first tries to suspend the current execution

plan by sending the suspend requests (PlanItemSuspendRequest message) to all the plan items that arein EXECUTION state. Based on the implementation of the process components, and the point at which theprocess component is executed, the process components may send a successful suspend response(PlanItemSuspendResponse message) or a successful completion response (PlanItemExecuteResponse).Any one of the responses is acceptable by the Orchestrator.

2. All the plan items that are in PENDING state are directly marked as SUSPENDED.3. Once the execution plan (and order) reaches the SUSPENDED state, the Orchestrator sends a plan generation

request to AOPD to generate the execution plan as per the order lines in the amendment request.4. The new execution plan generated by the core AOPD is merged with the existing plan to add, or to modify

the plan items as per the changes in the amendment request.5. Based upon the modification rule characteristics defined in the product model, the compensatory plan

items are added in the new execution plan to allow the undoing of the tasks that were performed by theearlier corresponding plan items. If required, the REDO plan items are also added in the new executionplan to allow the redoing of the tasks that needs to be performed by a particular plan item.

6. Upon receiving the consolidated execution plan for the amendment request from AOPD, the Orchestratoractivates the SUSPENDED plan and starts orchestrating it as per the latest dependencies.

7. All SUSPNDED plan items will be activated, either for cancellation (cancelWithNoRollback orcancelAndRollback) or resume execution (resumeExecution) by sending the PlanItemActivateRequestmessages.

8. Any compensatory and redo plan items, created during the amendment process, will be executed in thesame way as the regular plan items by sending the PlanItemExecuteRequest messages, so as to eithercomplete or cancel the order.

Modelling of the Required Characteristics in Fulfillment Catalog

As per the requirement of the amendment use case, some or all of the following characteristics are requiredto be available in the product model published to FOM. The modelling of these characteristics and relatingthem with the required products, needs to be done in TIBCO Fulfillment Catalog at the design time. Referthe generic steps given below for modelling.

This section covers just the high level modelling steps specific to the characteristics required foramendments. Refer TIBCO Fulfillment Catalog documentation for details.

1. Create the following records in CHARACTERISTIC repository:– EPMR_ACTION_PROVIDE

– EPMR_ACTION_CEASE

– EPMR_ACTION_UPDATE

– EPMR_ACTION_WITHDRAW

– COMPENSATE_PROVIDE

– COMPENSATE_CEASE

– COMPENSATE_UPDATE

2. For more granular EPMR actions based on the plan item statuses, the user can add additional characteristicsmentioned below in generic format. Note that these characteristics are used only in case of the new and

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 117

improved UDF modification functionality. Refer the New Characteristics sub-section in OrderLine UDFchange.– EPMR_ACTION_<<action>>_UDF_CHANGE_<<Plan Item Status>>. For example,

EPMR_ACTION_PROVIDE_UDF_CHANGE_SUSPENDED.

3. Create the Characteristic relationship between the records in PRODUCT repository and one or moreEPMR_ACTION_* records in the CHARACTERISTIC repository mentioned in point 1 and 2 above. The logicallyvalid value for the RelationshipValue attributes in all these Characteristic relationships can be one of thefour EPMR actions - COMPENSATE, RESTART, COMPENSATE_RESTART, or IGNORE. Refer the Execution PlanModification Rules (EPMR) on page 125 topic for the significance of these four actions. For example, thetechnical product Router can have a Characteristic relationship with EPMR_ACTION_PROVIDE characteristic,with the value of RelationshipValue attribute as COMPENSATE_RESTART.

4. Create the Characteristic relationship between the records in PRODUCT repository and one or moreCOMPENSATE_* records in the CHARACTERISTIC repository mentioned in point 1 above. The logically validvalue for the RelationshipValue attributes in all these Characteristic relationships should be the ID of theplan fragment record that is required to be executed as the compensation task for corresponding action.For example, the technical product Router can have a Characteristic relationship with COMPENSATE_PROVIDEcharacteristic, with the value of RelationshipValue attribute as the planFragmentID Router_Cancel.

Types of Amendment

At a high level, order amendments can be classified into the two heads and further into each sub-type asdescribed below:1. Changes at order line level

a. Action Change - Changing the action in one or more order lines.b. RequiredByDate Change - Changing the requiredByDate in one or more order lines.c. UDF Change - Changing the UDF(s) in one or more order lines.

2. Changes at the order header levela. RequiredByDate Change - Changing the requiredByDate at order header level.b. OrderLine Addition - Adding a new order line in the order.c. OrderPriority Change – Changing the orderPriority at the order header level.

The amendment types at the order line level are MUTUALLY EXCLUSIVE. Only one of the amendment typesis allowed for a particular order line in an amendment request. E.g. the action and UDFs cannot besimultaneously updated in an order line. If multiple amendment types are tried simultaneously for an orderline in a single amendment request, an exception with the appropraite code and an appropriate message isthrown. For example, if action and requireByDate both are changed in an order line in the amendment request,an exception with error code "TIBCO-AFF-OMS-100064" and error message "Action and requiredByDatecannot be modified simultaneously in an order line", is thrown.

However, different amendment types can be applied in different order lines as part of the same amendmentrequest. That is, action change in one order line and UDF or requiredByDate change in another one can bedone simultaneously.

OrderLine Action Change

In this amendment type, the fulfillment action in an order line can be changed as part of the amendmentrequest. E.g. action was PROVIDE in an order line in the original order request and changed to UPDATE inthe amendment request. Since CANCEL can also be passed as the action in one or all the order lines in theamendment request, order line cancellation and entire order cancellation are the sub-types of this amendmenttype.

OrderLine Cancellation

In order to cancel a particular order line, CANCEL must be passed as action in the amendment request. ThePENDING plan items associated to the order line are directly CANCELLED. Execution Plan ModificationRules are applied on the plan items that were COMPLETE or SUSPENDED before the amendment so as to

TIBCO® Fulfillment Order Management User's Guide

118 | Automated Order Plan Development

compensate them, as per the EPMR action defined in the product model. Once all the associated plan itemsare either cancelled or compensated, the order line is marked as cancelled by changing its status toCANCELLED.

Entire Order Cancellation

In order to cancel the entire order, CANCEL must be passed as action in all the order lines in the amendmentrequest. All the PENDING plan items in the execution plan are directly CANCELLED. Execution PlanModification Rules are applied on the plan items that were COMPLETE and SUSPENDED before theamendment to compensate them, as per the EPMR action defined in the product model. Once all the planitems are either cancelled or compensated, all the order lines and also the order is marked as cancelled bychanging the statuses to CANCELLED. The Execution Plan Modification Rules are applied in case of orderline or entire order cancellation, based on the boolean value (true/false) of the rollback UDF passed in theorder header. The modification rules will be applied if the rollback UDF's value is true, otherwise it will notbe applied.

The default behavior is always to rollback, that is, if the rollback UDF is not passed in the order header,it will be considered to be true.

An order can also be cancelled using the CancelOrderRequest SOAP service and from OMS UI.

Preconditions for Action change

Following are the preconditions for the order line action change amendment type.1. The number of order lines in the amendment request must match with those in the original order request.2. The lineID, productID, requiredByDate, and UDFs in all the order lines in the amendment request must

match with those in the original order request.

When the fulfillment action in an order line is changed, the plan items associated with that order line in theexisting plan are handled in different ways.1. The action in the amendment request is set as the fulfillment action in all PENDING plan items.2. Execution Plan Modification Rules (EPMR) are applied to all SUSPNEDED or COMPLETE plan items to

take the appropriate actions on these plan items such as compensating the earlier tasks and/or redoingthe tasks from beginning.

For any action change in the amendment request other than CANCEL, the EPMR characteristic correspondingto the action in the original plan item, from the product being fulfilled by that plan item, is considered whileapplying the modification rule.

EPMR Characteristic ConsideredOrderLine Action in AmendmentRequest

OrderLine Action in OriginalRequest

EPMR_ACTION_PROVIDEAny, except for CANCEL andPROVIDE

PROVIDE

EPMR_ACTION_UPDATEAny, except for CANCEL and UPDATEUPDATE

EPMR_ACTION_CEASEAny, except for CANCEL and CEASECEASE

On the other hand, if CANCEL is passed as the order line action in the amendment request, theEPMR_ACTION_WITHDRAW characteristic from the product being fulfilled by the corresponding planitem is considered always, regardless of the action in the original request.

Based on the value of the EPMR characteristic that was considered, the modification rules will be applied onthe required plan items. See topic Execution Plan Modification Rules (EPMR) on page 125 to understand theeffect of each action.

If the EPMR characteristic to be considered (e.g. EPMR_ACTION_PROVIDE) is not present in thecorresponding product model, COMPENSATE_RESTART will be considered as the default EPMR

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 119

action, only if the flag CompensateRestartForNoEPMRChar is set in AOPD configurations. See thetopic Amendment Configuration Flags on page 128 to understand the significance of each flag.

Once the EPMR action is applied on all the required plan items and the compensatory and/or redo planitems are generated, the dependencies in the parent plan items will be updated appropriately. See topicImpact on Dependencies on page 129 to understand how the dependencies are modified. The amendmentplan is sent out to Orchestrator so as to fulfil the order sent in the amendment request.

RequiredbyDate Change

RequiredByDate for an order defines the time at which the order plan should be executed. It can be mentionedat both the order header level or/and the order line level. In terms of dependency in the order plan, it generatesa time dependency (with absolute time) for a plan item along with dependency on other executing plan items(point dependency) if any. Once the absolute time is reached, time dependency is considered as satisfied.

Following are the preconditions for the order line requiredByDate change amendment type:1. The number of order lines in the amendment request must match with those in the original order request.2. The lineID, productID, action, and UDFs in all the order lines in the amendment request must match with

those in the original order request.

The method to determine the time dependency has changed from FOM 2.0.1 version in FOM 2.1.0 Followingis the process of calculating a time dependency with respect to requiredByDate.• If requiredByDate is set on the order level only, the start time dependency applies to all plan items with

no leading dependencies• If requiredByDate is set on the order line level only, the start time dependency applies to plan items for

that order line• If requiredByDate is set on the order header level and on the order line level, the following behaviour

applies:– If requiredByDate in Order Header is later than requiredByDate in order line, then the start time used

is the one at order level– If requiredByDate in Order Header is earlier than requiredByDate in line item, then the start time used

is the one at order line level

RequiredBydate Amendment type allows for changing the required date for an order when it is not in itsFINAL stages as mentioned earlier. The following matrix defines the conditions to identify a RequiredByDatechange amendment type:

IsAmendmentNew line dateNew header dateOriginal line dateOriginal headerdate

Nopast dated butgreater thanoriginalheader date

past dated butgreater thanoriginalheader date

Past DatedPast Dated

Yes, for thatparticular OrderLine

Future DatedSame as originalPast DatedPast Dated

Yes, for all orderlines

Same as originalFuture DatedPast DatedPast Dated

Yes, for all orderlines

Same as originalBack DatedPast DatedFuture Dated

Yes, for all orderlines

Same as originalFuture date thanoriginal

Past DatedFuture Dated

NoSame as originalSame as originalFuture DatedPast Dated

TIBCO® Fulfillment Order Management User's Guide

120 | Automated Order Plan Development

IsAmendmentNew line dateNew header dateOriginal line dateOriginal headerdate

Yes, for all orderlines. The time

Future DatedFutrure DatedPast DatedPast Dated

dependency will becalculated asexplained earlier.

NoSame as originalBack datedPast DateNo Date

NoSame as originalBack datedFuture DateNo Date

Yes, for all orderlines. The time

Fuutre DatedFuture DatedNo DateNo Date

dependency will becalculated asexplained earlier.

The default behaviour in 2.1.1 for required by date change is not to create compensation or restart any planitems. Below matrix defines the amendment behaviour based on plan item status

DescriptionPlan Item Status

Plan item dependency time will be updated so the plan item triggers at the amendedrequired by date.

Pending

Not permitted. Any required by date changes are ignored. As the plan item is alreadystarted, it is not possible to change the start date.

Suspended

Not permitted. Any required by date changes are ignored. As the plan item is alreadycompleted, it is not possible to change the start date.

Complete

The value of rollback UDF in order is ignored in this case as no compensation or restart plan items are created.

OrderLine UDF Change

OrderLine UDF change is an order amendment type where the amended order lines have changed only theircorresponding UDFs. All other attributes remain unchanged. FOM will be able to identify if the orders havechanged only with respect to UDFs by inspecting the orderlines to identify if the UDFs have been modified,added or removed. This way of identifying the amended UDF is different from FOM 2.0.1 and prior, whereUDF only change was identified by checking value of special UDF (MODIFICATION_IDENTIFYING_ATTR)passed in the order line. Starting from FOM 2.1.0, there is no need to pass MODIFICATION_IDENTIFYING_ATTRUDF to tell FOM which UDF is being modified.

Here is the sample orderline showing the changes between FOM 2.1.0 and FOM 2.0.1 and prior:

Sample OrderLine in FOM 2.0.1<ord1:line> <ord1:lineNumber>1</ord1:lineNumber> <ord1:productID>MODEM</ord1:productID> <ord1:productVersion>1.0</ord1:productVersion> <ord1:quantity>1</ord1:quantity> <ord1:uom>UOM</ord1:uom> <ord1:action>PROVIDE</ord1:action> <ord1:actionMode>MOVE</ord1:actionMode> <ord1:requiredByDate>2011-04-30T13:20:00-05:00</ord1:requiredByDate> <ord1:inventoryID>1</ord1:inventoryID> <ord1:notes>NOTES</ord1:notes> <ord1:slaID>SLA_ID</ord1:slaID> <ord1:udf> <ord1:name>MODIFICATION_IDENTIFYING_ATTR</ord1:name> <ord1:value>Region</ord1:value> </ord1:udf> <ord1:udf> <ord1:name>Region</ord1:name>

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 121

<ord1:value>Antarctica</ord1:value> </ord1:udf></ord1:line>

Sample Order Line in FOM 2.1.0<ord1:line> <ord1:lineNumber>1</ord1:lineNumber> <ord1:productID>MODEM</ord1:productID> <ord1:productVersion>1.0</ord1:productVersion> <ord1:quantity>1</ord1:quantity> <ord1:uom>UOM</ord1:uom> <ord1:action>PROVIDE</ord1:action> <ord1:actionMode>MOVE</ord1:actionMode> <ord1:requiredByDate>2011-04-30T13:20:00-05:00</ord1:requiredByDate> <ord1:udf> <ord1:name>Region</ord1:name> <ord1:value>Asia</ord1:value> </ord1:udf> </ord1:line>

Identifying UDF only Amendment

FOM checks the following conditions to identify UDF only change amendment scenario. All the followingconditions, which are mentioned, will hold true for UDF Only Change Amendment:• Number of order lines in initial order must match number of order lines in amended order.• The product Id in order line in Initial Order must match with the product Id in corresponding order line

of amended order.• The Action in order line in Initial Order must match with the Action in corresponding order line of amended

order.• The RequiredByDate in order line in Initial Order must match with the RequiredByDate in corresponding

order line of amended order.

New EPMR Characteristics

Starting with the version number 2.1.0, FOM provides more granular EPMR actions to be configured for UDFmodifications based on the status of the plan items, so as to have more control while generating theCOMPENSATE or REDO plan items.

The format of new EPMR characteristics are:1. EPMR_ACTION_<<action>>_UDF_CHANGE: Using this format EPMR action can be configured on per

Amendment Type. The supported values of <<action>> are:a. PROVIDE

b. CEASE

c. UPDATE

d. WITHDRAW

The following is an example of the characteristic, configured in product model with EPMR:<ns0:characteristics> <ns0:name>EPMR_ACTION_PROVIDE_UDF_CHANGE</ns0:name> <ns0:description>Characteristic</ns0:description> <ns0:instanceOptional/> <ns0:instanceCeaseSequence/> <ns0:instanceUpdateSequence/> <ns0:instanceSequence/> <ns0:instanceMin>0</ns0:instanceMin> <ns0:instanceMax>0</ns0:instanceMax> <ns0:evaluationPriority/> <ns0:value> <ns0:type>PROVIDE</ns0:type> <ns0:discreteValue>COMPENSATE_RESTART</ns0:discreteValue> <ns0:mandatoryValue>true</ns0:mandatoryValue> </ns0:value> <ns0:simpleRule> <ns0:name>EPMR_ACTION_PROVIDE_UDF_CHANGE</ns0:name> <ns0:ruleSetOutcome>Characteristic</ns0:ruleSetOutcome> </ns0:simpleRule></ns0:characteristics>

TIBCO® Fulfillment Order Management User's Guide

122 | Automated Order Plan Development

2. EPMR_ACTION_<<action>>_UDF_CHANGE_<<Plan Item Status>>: Using this format, EPMR action canbe configured on per Amendment Type and Plan Item Status . The supported values of Plan Item Statusare:a. COMPLETE

b. SUSPENDED

c. PENDING

d. EXECUTION

The following is an example of the characteristic, configured in product model with EPMR:<ns0:characteristics> <ns0:name>EPMR_ACTION_PROVIDE_UDF_CHANGE_SUSPENDED</ns0:name> <ns0:description>Characteristic</ns0:description> <ns0:instanceOptional/> <ns0:instanceCeaseSequence/> <ns0:instanceUpdateSequence/> <ns0:instanceSequence/> <ns0:instanceMin>0</ns0:instanceMin> <ns0:instanceMax>0</ns0:instanceMax> <ns0:evaluationPriority/> <ns0:value> <ns0:type>PROVIDE</ns0:type> <ns0:discreteValue>COMPENSATE_RESTART</ns0:discreteValue> <ns0:mandatoryValue>true</ns0:mandatoryValue> </ns0:value> <ns0:simpleRule> <ns0:name>EPMR_ACTION_PROVIDE_UDF_CHANGE</ns0:name> <ns0:ruleSetOutcome>Characteristic</ns0:ruleSetOutcome> </ns0:simpleRule></ns0:characteristics>

Backward Compatibility with FOM 2.0.1

FOM 2.1.0 will support use of MODIFICATION_IDNETIFYING_ATTR udf to denote the UDF being changedthrough the use of a flag. This flag , called EnableModificationIdentifyingAttribute, can configured fromFOM Config UI is as shown in the following figure:

The default value of this flag is FALSE.

Predefined UDFs

Changes in following UDFs are ignored by FOM:• ORDERLINE

• GLOBAL_PRODUCT_NAME

• EOL

• ACTION

• M_EPS_UDFS

The changes done only in the UDFs at the order header level in an amendment request doesn’t haveany impact on the existing plan in terms of the creation of compensatory and redo plan items. Therewill be no changes in the dependencies between the plan items either. However, the amendment planwill contain the updated value of the UDFs. The plan items which go into EXECUTION postamendment will be able to get the updated value of the header level UDFs using GetPlan JMS datainterface or GetOrderExecutionPlan service.

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 123

OrderPriority Change

The orderPriority change in an amendment request doesn’t have any impact on the existing plan in terms ofthe creation of compensatory and redo plan items. There will be no changes in the dependencies betweenthe plan items either. However, once the amendment plan is activated, the updated value of the orderPriorityis passed as JMSPriority in all further outbound JMS messages corresponding to that order so as prioritizethe fulfillment of the order.

OrderLine Addition

In this amendment type, one or more new order lines can be added as part of the amendment request to fulfilthe additional products. The plan items corresponding to the newly added order lines are added into theexecution plan and the dependencies are updated accordingly. At a high level, there are two main cases.1. If an optional child product from a ProductComprisedOf relationship was ordered in the original request

and the parent product is then ordered in a new order line in the amendment request, the newly createdplan item for parent product will have a dependency on the existing plan item of the child product.

For example, if B is an optional child product of A, in case of the above mentioned scenario; the newlyadded plan item for A will have a dependency on the plan item of B which was there in the original plan.This is done regardless of the status of the plan item for child product B.

This is logical and would have been the case even when both products were ordered in the original requestitself. Once the amendment plan is activated, the plan item for the parent product goes into EXECUTIONafter the plan item for child product is successfully completed. If the plan item for child product wasalready COMPLETE, the plan item for parent product will go into EXECUTION immediately.

2. On the other hand, if a parent product from a ProductComprisedOf relationship was ordered in theoriginal request and the child product is then ordered in a new order line in the amendment request, thedependency of the child plan item is added based on the status of the parent plan item, as explained inthe following points:a. If the parent plan item was PENDING before the amendment, the dependency will be added into the

existing parent plan item.b. If the parent plan item was SUSPENDED or COMPLETE before the amendment, a REDO plan item will be

generated against it. The original parent plan item will be cancelled if it was SUSPENDED. A REDO planitem will be generated based on the EPMR action configurations as mentioned in the following points:a. If the value configured in the EPMR characteristic for the corresponding order line action is either

RESTART or COMPENSATE_RESTART. E.g. In case of PROVIDE action, the value of EPMR_ACTION_PROVIDEcharacteristic is referred.

b. Or the required EPMR characteristic is missing in the product model and theCompensateRestartForNoEPMRChar flag is enabled in AOPD configurations.

See topic Execution Plan Modification Rules for details about EPMR actions. The dependency of thechild plan item will be added into the newly created REDO plan item for the parent product. Once theamendment plan is activated, the newly added plan item for the child product goes into EXECUTION.After it is successfully completed, the REDO plan item for parent will go into EXECUTION.

Preconditions for OrderLine Addition

Following is the only precondition for the order line addition amendment type.

The lineID, productID, requiredByDate, and UDFs in all the order lines in the amendment request mustmatch with those in the original order request.

Unlike addition, the deletion or removal of an existing order line is not allowed and supported in anamendment request. For cancelling the fulfillment of the product in an order line, the order line actionshould be changed to CANCEL instead.

TIBCO® Fulfillment Order Management User's Guide

124 | Automated Order Plan Development

Execution Plan Modification Rules (EPMR)

The execution plan, for the amendment types mentioned earlier, is modified based on the predefined rulesthat are specified as values in the following characteristics in the product model:1. EPMR_ACTION_PROVIDE

2. EPMR_ACTION_CEASE

3. EPMR_ACTION_UPDATE

4. EPMR_ACTION_WITHDRAW

Only one of the appropriate characteristics, based on the action passed in the original order, is referred towhile applying the modifications on the execution plan. For UDF change functionality, additional set ofcharacteristics can be defined to have a granular control based on the status of the plan item.

As mentioned in earlier, these rule actions are applied on the plan items that are either in SUSPENDED orCOMPLETE state. There are four standard EPMR actions which are explained in the following paragraphs.Only one of the four actions can be specified as the value for a particular EPMR characteristic for a particularproduct.

COMPENSATE_RESTART

This EPMR action is assigned as the value of an EPMR characteristic if a compensatory as well as a redo planitem is to be created against an existing plan item as a part of the amendment processing.

Compensatory Plan Item

The purpose of a compensatory plan item is to compensate, or reverse, the tasks that were done by the existingplan item before the amendment request was initiated. The important aspect of a compensatory plan itemare as follows:1. The planItemId of the compensatory plan item is derived using the planItemId of the existing plan item

and has the following format: COMP-<amendment number>_<planItemId of the existing plan item>.For example, if the planItemId of the existing plan item is 04ceddc8-60fc-4800-82b9-4f3382400000and a compensatory plan item is created against it during the first amendment request, the planItemIdassigned to that compensatory plan item will be COMP-1_04ceddc8-60fc-4800-82b9-4f3382400000.

2. The action and planFragmentUniqueID (processComponentID) in the compensatory plan item is assignedon the basis of the action in the existing plan item, which is described in the following table:

processComponentID inCompensatory Plan Item

Action in Compensatory PlanItem

Action in Existing Plan Item

Value of CharacteristicCOMPENSATE_PROVIDE

CEASEPROVIDE

Value of CharacteristicCOMPENSATE_UPDATE

UPDATEUPDATE

Value of CharacteristicCOMPENSATE_CEASE

PROVIDECEASE

If the required COMPENSATE_<ACTION> characteristic (for example COMPENSATE_PROVIDE) is notpresent in the product model, the regular plan fragment specified for CANCEL action will be assigned.

3. The compensatory plan item, by default, will have a simple END-START point dependency on the existingplan item being cancelled, as shown in the following figure. This is to ensure that the compensatory taskshould be started only after the existing task, being executed, is activated and cancelled.

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 125

Figure 46: Dependency between the compensatory plan item COMP-1_P1 and the existing planitem P1 that will be cancelled

In order to enable the backward compatibility of having no dependency in the compensatory plan itemsin FOM 2.0.x, the flag NoDependencyInCOMPPlanItems must be set in AOPD configurations. Refer topicAmendment Configuration Flags on page 128 to understand the significance of each flag.

4. The action and the processComponentID in the existing plan item will be set to CANCEL andNO_RECIPROCAL_ACTION respectively so as to cancel the existing plan item. Note that the Orchestratorchanges the processComponentID to NO_RECIPROCAL_ACTION only for the PENDING plan itemsthat are cancelled. The processComponentID for the SUSPENSED plan items remain the same.

A compensatory plan item, if requiring creation, is created always against a regular plan item in thefirst amendment. However, in the subsequent amendment requests, it can be created against a regularor a REDO plan item from the earlier amendment based on the execution plan at that point of time,as shown in the following figure. A compensatory plan item is never created against anothercompensatory plan item that was created during the last amendment.

Figure 47: Dependency between the compensatory plan item COMP-2_REDO-1_P1 createdduring second amendment and the REDO plan item from the last amendment REDO_P1, whichwill be cancelled.

Redo Plan Item

The sole purpose of a redo (restarting) plan item is to restart or redo the tasks that were supposed to be donein the existing plan item before the amendment request was initiated. The important aspects of a redo planitem are as follows:1. The planItemId of the redo plan item is derived using the planItemId in the existing plan item and has

the following format: REDO-<amendment number>_<planItemId of the existing plan item>. Forexample, if the planItemId of the existing plan item is 04ceddc8-60fc-4800-82b9-4f3382400000 and aredo plan item is created against it during the first amendment request, the planItemId assigned to thatredo plan item will be REDO-1_04ceddc8-60fc-4800-82b9-4f3382400000.

2. The action in the redo plan item is the one that is passed in the corresponding order line in the amendmentrequest.

3. The planFragmentUniqueID (processComponentID) in the redo plan item is same as the one in the existingplan item. It ensures that the same process component is executed by the redo plan item.

4. The redo plan item will always have a simple END-START point dependency on the compensatory planitem that is created, as shown in the following figure. This ensures that the designated tasks is restartedonly after the compensatory tasks are finished.

TIBCO® Fulfillment Order Management User's Guide

126 | Automated Order Plan Development

Figure 48: Dependency between the REDO plan item REDO_P1 and the compensatory plan itemCOMP-1_P1

A redo plan item, requiring creation, is always created against a regular plan item in the firstamendment. However, in the subsequent amendment requests, it can be created against a regular ora REDO plan item from the earlier amendments based on the execution plan at that point of time, asshown in the following figure. A redo plan item is never created against a compensatory plan itemthat was created during the last amendment.

Figure 49: Dependency between the redo plan item REDO-2_REDO-1_P1 created during secondamendment and the REDO plan item from the last amendment REDO_P1, which will be cancelled

In case of OrderLine Cancellation or Entire Order Cancellation, even if the EPMR action isCOMPENSATE_RESTART, only compensatory plan item will be created. There is no need to create a redoplan item as the order line, or the entire order will be cancelled.

RESTART is not a logical EPMR action in case of an order line or an entire order cancellation. If RESTARTaction is encountered while processing the order line or the order cancellation, no action will be takenon the corresponding plan item. A relevant message is logged, instead, to report the same.

COMPENSATE

This EPMR action is assigned as the value of an EPMR characteristic if only a compensatory plan item is tobe created against an existing plan item as a part of the amendment processing.

See Compensatory Plan Item for understanding all the aspects of a compensatory plan item.

RESTART

This EPMR action is assigned as the value of an EPMR characteristic if only a redo plan item is created againstan existing plan item as a part of the amendment processing.

See Redo Plan Item for understanding all the aspects of a redo plan item.

The redo plan item will always have a simple END-START point dependency directly on the existing plan itemthat is going to be activated and cancelled, due to the non-existense of a compensatory plan item as shownin the following figure. This is to ensure that the designated task should be restarted only after the cancellationof the existing task

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 127

Figure 50: Dependency between the REDO plan item REDO_P1 and the existing plan item P1, whichwill be cancelled

.

IGNORE

This EPMR action is assigned as the value of an EPMR characteristic, if no explicit action is required to betaken against an existing plan item as part of the amendment processing. In case of OrderLine Cancellationor Order Cancellation, the planFragmentUniqueID (processComponentID) of the plan item is set toNO_RECIPROCAL_ACTION.

No EPMR Characteristic in Product

In case a product model does not contain the required EPMR characteristic, then behaviour of amendmentto generate redo or compensate plan item can be controlled using the flag,CompensateRestartForNoEPMRChar, in AOPD configurations. See the topic Amendment ConfigurationFlags on page 128 for this flag.

Amendment Configuration Flags

The following are the flags available in AOPD configurations to tweak some of the functionalities aroundorder amendments:1. EnableModificationIdentifyingAttribute

This flag, if true, enables the OrderLine UDF modification functionality using theMODIFICATION_IDENTIFYING_ATTR characteristic as it was in 2.0.x.

2. NoDependencyInCOMPPlanItems

This flag, if true, enables the backward compatibility to 2.0.x of having no dependency of the existing planitem being cancelled, in the compensatory plan item. The compensatory plan item will immediately gointo execution along with the activation request of the existing plan item.

3. EnableDateShiftCompRedo

This flag, if true, enables the backward compatibility to 2.0.x version of creating compensatory and redoplan items in case of requiredByDate change (Date Shift) type amendments. This value of rollback udfcontrols the behaviour at runtime. The default value of rollback is true and the behavior is:– Compensation and Restart plan items will be created as per the EPMR characteristics for suspended

and completed plan items.– The original completed and suspended plan items will not have the new requiredByDate. New

requiredByDate (date shift) will be set for the corresponding “Redo” plan items.– In case of pending items, the requiredByDate of that pending plan item will be changed to the new

requiredByDate. No Compensate or Redo Plan items will be generated.

If mentioned as false, then– Compensation and restart plan items will not be created.– Completed and suspended plan items will not contain the changed required by date. Only pending

plan items will have the new date.

TIBCO® Fulfillment Order Management User's Guide

128 | Automated Order Plan Development

The behaviour of requiredByDate amendments for compensation and restart plan items for EPMRcharacteristics will be consistent with implementation of other amendment types configured for 2.0.x inthis release.

4. CompensateRestartForNoEPMRChar

This flag, if true, considers COMPENSATE_RESTART as the EPMR action in case of the required EPMRcharacteristic not present in the product model. If this flag is false and the required EPMR characteristicis also not present in the product model, no action will be taken on the plan items associated to thatproduct, that are in COMPLETE or SUSPENDED state.

Impact on Dependencies

If both compensatory plan items and redo plan items or either of them are created against one or more existingplan items while processing an amendment request, the dependencies in the overall execution plan areimpacted. The dependency on the existing plan item being cancelled is implicitly added in the compensatoryand/or redo plan item when they are created. There can be some additional dependencies in the redo planitems in certain cases. Also, the dependencies in other regular plan items are modified, if required. Thefollowing points explain these modifications:1. If a parent plan item in PENDING state, which is not being cancelled, has a dependency on such a child

plan item against which a COMP and REDO plan items have been created, the dependency on the existingplan item is removed and a new dependency is added on the REDO plan item, as shown in the followingfigures. The REDO plan item has higher priority over the COMP plan item while replacing the dependencyon the corresponding existing plan item. If the REDO plan item does not exist, the dependency on theexisting plan item will be replaced with a dependency on the COMP plan item. This keeps the dependencystructure in the amendment plan in-line with the earlier plan.

Figure 51: Dependency on plan item P1 in PENDING plan item P2 in the original plan

Figure 52: Dependency on the first level REDO plan item of P1 in PENDING plan item P2 in theamendment plan

2. If REDO plan items have been created against an existing parent as well as child plan item, then the samedependency is maintained between the corresponding REDO plan items. The parent REDO plan item willhave a dependency on the child REDO plan item, in addition to the dependency on the existing originalplan item being cancelled, as shown in the following figures:

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 129

Figure 53: Dependency on plan item P1 in plan item P2 in the original plan

Figure 54: Dependency on REDO plan item P1 in REDO plan item P2 in the amendment plan

3. If COMP plan items have been created against an existing parent plan item as well as child plan item, areverse dependency is maintained between the corresponding COMP plan items in the amendment plan.The child COMP plan item has a dependency on the parent COMP plan item, as shown in the figure. Itis done to ensure that the exact compensation of the plan items, that is, the compensation of parent planitem occurs first, followed by the compensation of child plan item.

Figure 55: Dependency on plan item P1 in plan item P2 in the original plan

Figure 56: Dependency on COMP plan item P2 in COMP plan item P1 in the amendment plan

TIBCO® Fulfillment Order Management User's Guide

130 | Automated Order Plan Development

Multiple Amendments

FOM allows multiple amendments of an order however not concurrently. This means that the order whichis currently being amended cannot be amended again at the same time. Once the existing amendment requestis successfully processed by FOM and the new plan is activated, the order can be very well amended again,provided the amendment conditions are satisfied. Each amendment request for an order is processed in thesame way as explained in section Amendments Workflow.

The planItemId assigned to a compensatory or a redo plan item created during an amendment contains theamendment number as one of the prefixes. Refer sections Compensatory Plan Item and Redo Plan Item forthe knowing the planItemId format.

Order Priority

This section describes about the order priority process.

Understanding Order Priority

The OrderPriority enables the user to set priority on submitted orders. This information is then used by JMSbroker to deliver the high priority orders to downstream components on priority. The order priority is alsopropagated to downstream process components. The priority value ranged from 0 to 9. The priority informationor priority value to process any given order is set in the JMSHeader field of the JMS message which is sent tothe following Fulfillment Order Management components:• Orchestrator engine• AOPD engine

The JMS broker then delivers the order based on a priority.

The process of order prioritization works at a queue level and can be controlled by JMS broker.

The order priority process or order prioritization cannot be controlled once the message is deliveredto the Orchestrator engine or AOPD engine. The priority value can be changed before JMS brokersends the order request to the engines.

Order Schema Changes

The order schema allows you to submit the orderPriority information with the order. The orderPriorityis at the orderHeader level and the same priority is applied to all the orderLines.

The schema snippet is as follows:

<xs:element name="orderPriority" minOccurs="0" default="4"> <xs:simpleType> <xs:restriction base="xs:integer"> <xs:minInclusive value="0" /> <xs:maxInclusive value="9" /> </xs:restriction> </xs:simpleType> </xs:element>

The orderPriority can take values in range from 0 to 9 to make consistent and map with JMSPrioritymessage header values.

The default value of the orderPriority field is 4.

Lower Priority Orders

When any order is processed based on the given priority, it results in a situation where a lower priority ordersmay never get a chance to be processed because of high priority orders.

The orders with the lower priority can be processed by a mechanism known as the Flow Control mechanism.

TIBCO® Fulfillment Order Management User's Guide

Automated Order Plan Development | 131

The Enterprise Messaging Service (EMS) allows the user to control the flow of messages to a destination.Each destination can specify a target maximum size for storing all the pending messages. When the target isreached, EMS blocks message producers when new messages are sent. This effectively slows down messageproducers until the message consumers can receive the pending messages.

Custom Action

In the Fulfillment Order Management 2.0.0 release, you can define the set of Actions to provide a way todefine any number of unique fulfillment actions. Until this release, only four set of actions were supported.

Custom actions are loaded into AOPD as Action Models and will be referred to at the time of plan generation.

Custom action enables you to submit an order for custom actions, depending on which AOPD assigns theplanfragment.

The planfragment is selected based on the PlanFragmenthasCustomAction relationship from theproduct datamodel.

TIBCO® Fulfillment Order Management User's Guide

132 | Automated Order Plan Development

Chapter

3Jeopardy Management System

This section describes the functions of TIBCO® Fulfillment Order Management Jeopardy Management System

feature.

Topics

• Jeopardy Management System

TIBCO® Fulfillment Order Management User's Guide

Jeopardy Management System

Service level agreements(SLAs) are commonly used to ensure the quality of service (QoS). The conventionalway to manage a service is to measure the QoS and then determine whether the requirements have been met.This means that problems are detected and then corrective action is taken. By contrast, the JeopardyManagement module rely on predicting the result of QoS compliance of process components that are part oforder fulfillment eco system. Therefore, it is frequently possible to take corrective action before a problemoccurs, thus minimizing its impact.

Jeopardy Management

The jeopardy management process involve three main activities:1. Monitoring the QoS2. Reporting the QoS3. Predicting the QoS

The objectives of Jeopardy Management are as follows:1. Continuous collection of performance data and status information of all execution plan2. Detect SLA violation3. Predict Jeopardy Conditions for execution plan4. Perform consequential actions

a. Send notificationb. Invoke web service

The Jeopardy Management System enables you to manage the risk associated with plan tasks falling behindschedule, and to prevent them from jeopardizing the timely fulfillment of an order. The Jeopardy ManagementSystem is a key component of Fulfillment Order Management (FOM). Jeopardy management is the processof monitoring execution of a set of tasks in a plan to fulfill a customer order. In FOM, execution plans aregenerated by decomposing orders based on the product model. Plans are orchestrated based on a schedule,and when a plan goes or predicted to go outside the expected design of the schedule then the system notifiesthe stakeholders as early as possible to take the corrective steps.

A plan is composed of a series of plan items. Each plan item has at least two milestones:• START milestone• END milestone

Plan items may also have intermediate milestones that represent points of interest during execution of thatplan item. Service-level agreement of service provider that executes plan items are specified through processcomponent model or Plan fragment model which stipulate among other things - the provided Servicesperformance. SLAs have a typical duration and a maximum allowed duration to fulfill a plan item.

To manage the risk associated with plan tasks falling behind schedule, the jeopardy manager performs thefollowing risk-management tasks:1. Managing Critical Paths: Jeopardy management computes and keeps an account of critical paths through

an execution plan. Two of these critical paths correspond to the typical and maximum durations of processcomponents. The third type of critical path is based on the actual duration to date, once the execution planhas started processing. The critical paths are used to predict the completion date and time of the executionplan. By viewing the critical paths in the UI GANTT Chart, you can determine whether your executionplan is progressing normally or if it is in danger of being in jeopardy. The OMS UI highlights each planitem as per the following legend scheme:a. Plan item instance is marked in the NORMAL region, if its execution is started on time and completed

within expected time lines.

TIBCO® Fulfillment Order Management User's Guide

134 | Jeopardy Management System

b. Plan item instance is marked in the HAZARD region, if its execution is started late and delayed thanexpected time lines but it does not lie on critical path.

c. Plan item instance is marked in the CRITICAL region, if its execution is started late and delayed thanexpected time lines and lies on the critical path. The UI also highlights risk regions of a plan with colorscheme.

Figure 57: Jeopardy Indications

2. Monitoring jeopardy conditions at each of the following levels:

a. Plan Task

b. Execution Plan

3. Perform consequential actions at each of the following levels:

a. Plan Task

b. Execution Plan

c. Milestone

The Fulfillment Order Management UI shows dashboard for jeopardy management containing the followingelements along with Orders Summary, Amended Orders, Backlog Orders, Orders in Execution:1. Orders In Jeopardy.2. Jeopardy Live Alerts.3. Jeopardy Recorded Alerts.

Understanding Plan

A plan is constituted of a series of plan items. Each plan item has at least two milestones - START and END.Plan items may also have intermediate milestones that represent points of interest during execution of thatplan item.

There are two types of milestone dependencies:

Time DependencyPoint Dependency

dependency on a given date and time being exceededdependency on release of a givenmilestone in another plan item inthe plan

Execution of a plan item stops at a milestone until that milestone has been released. A milestone withno dependencies is released immediately. However, a milestone with attached dependencies is onlyreleased once all the point and time dependencies are satisfied.

TIBCO® Fulfillment Order Management User's Guide

Jeopardy Management System | 135

Figure 58: Plan Dependency

For details on dependencies, see Understanding Dependencies on page 137.

Understanding Critical Path

. The critical path is the longest sequence of plan item sections that determines end time of a plan. The criticalpaths are used to project the completion date and time of the execution plan.

Paths are computed using the dependencies between plan item sections.

Critical Path Calculation

Critical path is used for both SLA and predictive jeopardy for monitoring a plan. A simple plan consists ofa single execution path. For example:

Figure 59: Plan with Single Execution Path

Some plans have multiple execution paths as shown in the following figure:

TIBCO® Fulfillment Order Management User's Guide

136 | Jeopardy Management System

Figure 60: Plan with Multiple Execution Paths

Understanding Dependencies

Dependency can be defined as a relationship between milestones in an execution plan. For example, MilestoneB cannot start until Milestone A completes.

Milestone Dependencies

When a dependency on a milestone is determined, you can either depend on the milestone being started, orfinished.

This means that Milestone 2 cannot be finished until Milestone 1 is started.

End Milestones

In case of an end milestone:• another milestone cannot depend on the finish of an end milestone because there is no Finish (Release)

on a Task Complete message• the end milestone cannot be dependent on any other milestones

The following table lists the types of dependencies that can be set up between plan task milestones.

EffectDependency

The milestone must start on the date/time specified. If it cannot started for somereason (for example, because a previous plan task is late), a jeopardy condition istriggered.

Must Start On

One milestone is able to be released when the other milestone is releasedFinish to Finish

One milestone can be released only when the other beginsStart to Finish One

Jeopardy Management for Execution Plans

If a given plan task or milestone is in jeopardy, it may or may not indicate that the overall execution plan isin jeopardy. The jeopardy manager also provides facilities for monitoring whether the whole execution planis running on time, or taking longer to complete than expected. This is done by monitoring the forecast enddate and time of the plan and comparing it against several threshold dates.

If you use start date scheduling or end date scheduling for your execution plans, you can set a different setof jeopardy conditions at plan level.

TIBCO® Fulfillment Order Management User's Guide

Jeopardy Management System | 137

Jeopardy Management for Plan Task

A simple process component that has only start and end milestones consists only of one section, but morecomplex components will be made up of several sections. A section is the interval between two milestones.

At the level of process component sections, you can configure jeopardy conditions that enable you to detectboth if the task has taken longer to complete than it should have, and also to detect if a task that is under wayor has not yet started is predicted to take longer to complete than scheduled.

Jeopardy manager allows you to monitor the following durations:• Typical Duration: you can specify this value when you create a process component, or when you define

the plan task that uses the component in an execution plan.• Maximum Allowed Duration: the maximum amount of time the activity represented by the task can take

before it is considered to have overrun. You can specify this value when you create a process component,or when you define the plan task that uses the component in an execution plan.

There are critical paths identified in execution plans, constructed using the typical and maximum durationsof the plan tasks included in those plans. If one of the process component sections being monitored has notcompleted before its defined typical duration, a monitor event is triggered (consequential action is performed).If the section has not completed before the end of its maximum allowed duration, another monitor event istriggered. For Example, a plan has taken longer than expected/predicted. The plan task has exceeded itstypical duration, its maximum duration, and two subsequent monitoring intervals. A monitor event has beenfired at each stage to notify you of the following:• After Typical Duration• After Maximum Duration

Figure 61:Typical and Maximum Durations

Figure 62: Jeopardy Risk Region for Plan

TIBCO® Fulfillment Order Management User's Guide

138 | Jeopardy Management System

Must Start On Dependencies

The must start on dependency indicates that an activity must start at a specific point in time. You can applythese dependencies to milestones that denote the start of such activities; in normal circumstances, when theexecution plan is running on schedule, these are used to schedule activities at the right time, by releasing therelevant milestones. However, if it is predicted that it is not possible to release a milestone at the scheduledtime, or if that time is reached and the milestone still cannot be released, the Jeopardy Management Systemrecognizes the jeopardy condition.

Predictions are calculated during jeopardy detection cycle. Frequency of Jeopardy detection cycle isconfigurable.

Consequential Actions

Jeopardy Manager raises the jeopardy event. If a plan item is in jeopardy, the PlanItemJeopardy event israised. If a Plan is in jeopardy, the PlanJeopardy event is raised.

To reduce the number of Jeopardy notifications sent out for a particular plan, jeopardy sends either a predictivenotification or the actual notification at the plan level. For example, if the jeopardy sends out a predictivenotification AFF-JM-PLAN-0200 for the Plan to possibly exceed the typical duration, then the jeopardy willnot send out the AFF-JM-PLAN-0100 notification if the plan actually exceeds typical duration, as they arethe notifications for the same risk region.

Jeopardy event message contains payload with information about the jeopardy condition. You can configurethe consequential that you want to perform when these events are raised by the system that configures theJeopardy Rules.

Jeopardy Rules can be configured through OMS UI rule configuration option.

For each of the listed jeopardy conditions, you can take any of the following possible consequential actions:• Alert notification.• Fulfillment Action.

Jeopardy Pre-release Order Processing

The earlier versions of FOM (FOM 2.1.0 and earlier) used to store the order and the plan information forjeopardy in the active space data store. In FOM 2.1.1, jeopardy has been designed to work in cache (servermemory) mode. In the cache mode, jeopardy stores order and plan information in server cache (memory).

Because the implementation information of the earlier versions (FOM 2.1.0 and earlier) will not be availablein the server cache, jeopardy will ignore orders that were placed prior to the FOM 2.1.1 implementation, andare still in the execution status. Hence, it is recommended that all existing orders, placed prior to the FOM2.1.1 implementation, should be in their logical end status, that is COMPLETED, CANCELLED, orWITHDRAWN.

Predictive Jeopardy

Predictive jeopardy is measured on several metrics:

Plan DurationPlan Item Start Date

The overall duration of the plan can be calculated byperforming a critical path analysis on the plan itemsthat compose the plan

For plan item milestones with both point and timedependencies, it is possible that the specified timedependency is not feasible based on the durations ofthe previously executed plan items that form the pointdependencies on the same milestone

TIBCO® Fulfillment Order Management User's Guide

Jeopardy Management System | 139

Plan DurationPlan Item Start Date

Plan duration predictive jeopardy determines whetherthe execution duration of the plan will exceed thedesign duration of the plan

Plan item start date predictive jeopardy determineswhether the plan item will later than the specifiedstart date due to the other dependencies

Jeopardy Events

The following are the types of jeopardy events:

Plan Item Jeopardy

The following table lists the jeopardy conditions for the plan item:

DescriptionPlan Item Jeopardy Conditions

Plan item has exceeded typical durationAFF-JM-PLANITEM-0100

Plan item has exceeded maximum durationAFF-JM-PLANITEM-0110

Plan item has exceeded required startAFF-JM-PLANITEM-0120

Plan item start is predicted to exceed required start and is increasingAFF-JM-PLANITEM-0200

Plan item start is predicted to exceed required start and is decreasingAFF-JM-PLANITEM-0210

Plan item is no longer predicted to exceed required startAFF-JM-PLANITEM-0220

Plan Jeopardy

The following table lists the jeopardy conditions for plan:

DescriptionPlan Jeopardy Conditions

Plan has exceeded typical durationAFF-JM-PLAN-0100

Plan has exceeded maximum durationAFF-JM-PLAN-0110

Plan has exceeded out of scope thresholdAFF-JM-PLAN-0120

Plan is predicted to exceed typical duration and is increasingAFF-JM-PLAN-0200

Plan is predicted to exceed typical duration and is decreasingAFF-JM-PLAN-0210

Plan is no longer predicted to exceed typical durationAFF-JM-PLAN-0220

Plan is predicted to exceed maximum duration and is increasingAFF-JM-PLAN-0230

Plan is predicted to exceed maximum duration and is decreasingAFF-JM-PLAN-0240

Plan is no longer predicted to exceed maximum durationAFF-JM-PLAN-0250

Order Selection for Jeopardy Management

Since Jeopardy Management System is designed to send an alert on the plan tasks that are falling behindschedule, and to prevent the plan tasks from jeopardizing the SLA for the entire order fulfillment, JeOMSmakes some dynamic decisions when processing long and short running orders.

There are chances of orders missing SLA requirements. If such a scenraio occurs, then getting alerts on theshort running orders (orders expected to finish in 5 minutes or less) will not be helpful as sending alerts toproduction support personnel, and the subsequent manual action on the alerts, will take more time than thelifespan of the order.

TIBCO® Fulfillment Order Management User's Guide

140 | Jeopardy Management System

Jeopardy, therefore, has a stronger focus on the long running orders (orders that are expected to run for anhour or more). Jeopardy will process almost all the orders, but for short running orders, jeopardy may skipsome alerts that are not expected to be handled when the risk level for that alert changes to a severe one.

TIBCO® Fulfillment Order Management User's Guide

Jeopardy Management System | 141

Chapter

4Router

This section describes the functions of TIBCO® Fulfillment Order Management Router.

Topics

• Architecture

TIBCO® Fulfillment Order Management User's Guide

Architecture

Here is the list of features of the Router:1. Router redirects the order request to external Orchestrator based on routing parameter configured in the

payload.2. The routing parameter is extracted using XPATH expression.3. Router invokes the Orchestrator services or using JMS.4. Router also manages the table of order id of the order request and Orchestrator node that processed.

Router makes sure that any subsequent request on the order is routed to same node. For example, thereare two OMS instances deployed in the cluster.

5. Router can optionally send only the order id in the payload properties (i.e. the order request is removedfromthe payload). The Orchestrator listener gets the payload with order Request from Activespaces hibernatesecond level cache after consuming the order request.

Figure 63: Router Diagram

TIBCO® Fulfillment Order Management User's Guide

144 | Router

Chapter

5Fulfillment Order Management User Interface

This section describes the TIBCO® Fulfillment Order Management user interface.

Fulfillment Order Management (FOM) application provides:• a visual interface to view order details, order execution plans, plan for Fulfillment Provisioning, jeopardy rule

configuration and activity logs• facility to search orders fast• a complete view of orders that were fulfilled or failed during the fulfillment process• end-to-end tracking, storing and monitoring capability for orders in the order fulfillment system• capability to perform actions on the orders being executed in the system

The date is in the MM/DD/YYYY HH:MM:SS Z format, where Z is the time zone where the request is processed.For instance, UTC-7. You can configure the date from the Fulfillment Configurator.

You can perform the following actions on Fulfillment Order Management:

DescriptionFulfillment OrderManagement Actions

Viewing Dashboard: View the Fulfillment Order Management Dashboard forsummarized information about:

Orders Panel

Dashboard-specificactions

• Order Summary• Orders in Execution• Backlog Orders• Amended Orders

Jeopardy Panel

• Orders in Jeopardy• Jeopardy Live Alerts• Jeopardy Recorded Alerts

For details, refer to Dashboard on page 150 .

Fulfillment Order Management allows you to:Order-specific actions• View order Details• Search orders• Amend orders

For details, refer to Orders Page on page 157.

Perform the following plan specific actions in the Fulfillment Order Management.Plan-specific actions• View Plan Details• Search plan• View GANTT chart for the plan

TIBCO® Fulfillment Order Management User's Guide

DescriptionFulfillment OrderManagement Actions

• Dependency View for the plan

Shows the status and revision history of an object (order or a plan) and FulfillmentProvisioning (FP) logs based on the following criteria:

Activity Log

• Order Ref• Plan Id• Rule Name• FP Order Id• FP OrderLine Id• FP Resource Id• FP TechnicalOrder Id

All the FP related options are displayed only if FP configuration is enabled.

For details, refer to About Activity Log on page 195.

The Rule Config panel allows you to add rule to receive Jeopardy notification onconfigured channel or invoke specific service if order is in jeopardy according to theconfigured condition.

There are two notification types:

Rule Config

1. Service2. Notification

If you choose the 'service' as notification type, provide the service parameters in therespective tab.The notification channels are:1. JMS2. File3. Tibbr4. SMTP

The Catalog panel allows you to view the catalog model associated with the OMS userinterface.

You can:

Catalog

1. View a catalog model of all products.2. Navigate from the order's product ID to view the specific catalog model w.r.t. product

ID.

The Fulfillment Order Management also describes the functionalities of Fulfillment Provisioning related to:• Activity log• FP Service Order Hierarchy• Display Service Order (attributes, parameters, and service logs)

Topics

• Navigation• Changing Password• Fulfillment Order Management Functionality• Fulfillment Provisioning Service Order Hierarchy

TIBCO® Fulfillment Order Management User's Guide

146 | Fulfillment Order Management User Interface

• Fulfillment Provisioning Attributes and Parameters• Searaching for Fulfillment Provisioning Components

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 147

Navigation

Access to the Dashboard is controlled through basic username and password authentication.

To access TIBCO Order Management System form a browser window, perform the following steps:

Microsoft Internet Explorer 8 and 9 (IE* and IE9) are supported for the OMSUI.

1. Go to the URLhttp://<host>:<port number>/omsui/Login/Login.jsp to access the Login page where:– host is the computer where you installed the Fulfillment Order Management.– port is the port number of the machine where Fulfillment Order Management installation listens to

the requests. The default port number is 8080.

You can configure host and port from the Fulfillment Configurator.

Figure 64: Fulfillment Order Management Login

2. Enter the username and password to sign in. The default username and password is admin. The FulfillmentOrder Management Dashboard is displayed. For details, see Dashboard on page 150

Figure 65: Fulfillment Order Management Dashboard

TIBCO® Fulfillment Order Management User's Guide

148 | Fulfillment Order Management User Interface

Changing Password

Fulfillment Order Management allows you to change your password in the dashboard. To change thepassword:1. Login to the Fulfillment Order Management.2. On the top right corner, click Change Password.

Figure 66: Change Password

3. In the Change Password dialog, enter your existing password, new password, and re-enter your newpassword to confirm the change.

Figure 67: Change Password Dialog

4. Click Save to successfully change your password. Click Cancel to exit without saving the new password.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 149

Fulfillment Order Management Functionality

The Fulfillment Order Management UI consists of the following tabs:1. Dashboard on page 150.2. Orders Page on page 157.3. Plans Page on page 162.4. Jeopardy Rule Configuration on page 167.5. Catalog Tab on page 197.6. GANTT Chart on page 187.7. About Activity Log on page 195.

Dashboard

An Fulfillment Order Management Dashboard is a graphical user interface that organizes and presents richand enhanced information in a format that is easy to read and interpret. The Dashboard is the default viewwhen you access the Fulfillment Order Management.

Features of the dashboard include:

• An intuitive graphical display that is easy to navigate - A rich Graphical User Interface (GUI) withuser/role security to manage/view orders.

• A logical structure that makes information easily accessible - Ability to view all orders through graphicalDashboard summary.

• Data displays that can be customized and categorized - Ability to drill-down into order details by settingdisplay preferences.

• Regular and frequent updates of dashboard information for accuracy and relevance - Ability toauto-refresh to display updated details for an order cancellation, amendment, suspension, and resumption.

• Information from multiple sources can be viewed simultaneously - Ability to manage, search and filterlists of existing orders.

The Dashboard allows effective order management with a comprehensive operations view. The informationdisplayed is a combination of text and graphical views, as:• Current number of orders being processed.• Current number of orders completed in the last 24 hrs.• Current number of orders in the Execution state.• Current number of orders errored out in the last 24 hrs.• Current number of orders amended in the last 24 hrs.• Current number of suspended orders.• Current number of orders in Jeopardy.• Current number of Jeopardy live alerts.

Dashboard Components

The Dashboard displays the following panels:• Orders Summary• Amended Orders• Backlog Orders• Orders in Execution

TIBCO® Fulfillment Order Management User's Guide

150 | Fulfillment Order Management User Interface

Figure 68: Fulfillment Order Management Dashboard

All the above sections except Backlog Orders by default show the data for the Month. You can changethe data window anytime by editing the display preferences.

Every section updates itself periodically with the default interval of 300 seconds (300000 milliseconds).However, you can change the default interval by editing the preferences.

Order Summary

The Orders Summary section displays the summary of orders in terms of the order status and correspondingcount of orders.

Summary is displayed in the form of a horizontal bar chart (order status versus number of orders). To seethe details of a particular order status with the list of orders on the Orders page, click on the respectivehorizontal bar.

Figure 69: Order Summary Section

Under the Orders Summary section, you can perform the following operations:• Refresh Interval: This is the Interval after which the chart is refreshed. To set the refresh interval, refer

to Auto-refreshing the Interval on page 152.• Set the Time Period to View the Chart: You can set the time period to view the order chart. To do this,

refer to Viewing Order Summary Data Based on the Definite Time Period on page 152.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 151

Auto-refreshing the Interval

Auto-refreshing the chart saves you the time and effort to view the fresh information on the Dashboard. Theinterval is in milliseconds.

To auto-refresh the chart after a definite time period, perform the following steps:1. On the top-right corner, click the Edit Preferences icon .2. In the Auto refresh interval field, enter the time (in milliseconds) that you wish to set to auto-refresh the

Order Summary chart information.3. Click the Save button to save the setting and exit the dialog. You are now set to see the refreshed Dashboard

after the interval you have specified. Click the Cancel button to exit the dialog without saving the setting.

Viewing Order Summary Data Based on the Definite Time Period

The Dashboard allows you to customize the information format that is displayed through the chart. Here arethe different time period parameters based on which you can see the chart data.

Result Data DetailsTime Period

The chart shows the data for the current day.Day

The chart shows the data for the current week.Week

The chart shows the data for the current month.Month

The chart shows the data for the current year.Year

To view the chart for the specified time period, perform the following steps:1. On the top-right corner on the Order Summary section, click the Edit Preferences icon .2. From the Data Window list, select the time period from the available options - Day, Week, Month, or Year

for which you wish to see the data.

The default selected option is Month.

3. Click the Save button to save the information and exit the dialog. The data is displayed based on the timeperiod option you selected. Click the Cancel button to exit the dialog without specifying the time period- the data will be displayed according to the default selected time period Month.

Backlog Orders

This section shows the list of backlog orders . The term backlog orders refers to those orders that have been notyet completed and not covered in the Order Summary section.

You can select which columns you wish to see by editing the display preferences. The steps to edit the preferencesare similar to those of Order Summary or Amended Orders section.

Like the Amended Orders section, by default you can see the top six records of the backlog orders. To see

more orders, click the Maximize icon .

If you want to view details for any particular order, click on the respective row and see the details of theselected order on the Orders page.

Amended Orders

Amended Orders section provides you with the consolidated view of the list of amended orders. By default,

records of the top six amended orders are displayed. To see more orders, click the Maximize icon .

You can perform the following operations under the Amended Orders section:• View the Order Details: If you wish to view the details for any particular order, click on the respective

order link in the row. The Orders page with the selected order detail is displayed.

TIBCO® Fulfillment Order Management User's Guide

152 | Fulfillment Order Management User Interface

• Customize the Amended Orders Display Format: The Dashboard allows you to customize the informationdisplay under the Amended Orders section according to your convenience and ease of use. To know how,refer to Setting Display Preferences for Amended Orders on page 153.

• Filter the Amended Orders Data: You can display the data in the Amended Orders section with theSubmitted Date filter. To do this:1.

On the Amended Orders section, click the Filter icon . The Filter window is displayed.

Figure 70: Filtering Data

2. In the Find field, enter the (order) submission date in the mm/dd/yyyy format or click the Calendaricon to select the date from the calendar.

3. Click the Go button to find orders submitted on the specified date. Click the Clear button to reset theorder submission date.

4.Click the Filter icon again to exit the Filter window (optional).

Setting Display Preferences for Amended Orders

You can customize the Amended Orders section display based on the following parameters:• Column Selection: Choose from a list of available columns that you wish to see.

1. On the top-right corner on the Amended Orders section, click the icon. The Edit Preferences dialogis displayed.

2. Select the column you wish to see to display data in the Amended Orders grid. You can select fromthe following available options:

DescriptionColumn Header

Displays the Order Ref ID column.Show Order Id column

This column is always visible.

Displays the Customer ID column.Show Customer Id column

Displays the Subscriber ID column.Show SubscriberId column

Displays the Status column.Show Status column

Displays the Submitted Date column.Show Submitted Date column

• Time period: Set the time period to view the amended orders.1. In the Edit Preferences dialog, select the time period for which you wish to see the amended orders.

For example, if you wish to see the data on a weekly basis, select Week from the list. The default selectedoption is Month.

2. Click the Save button to save the information and exit the dialog. The data is displayed based on thetime period option you selected. Click the Cancel button to exit the dialog without specifying the timeperiod - the data will be displayed according to the default selected time period Month.

• Refresh Interval: Set the auto-refresh interval in milliseconds to display the information for all the amendedorders in a tabular format.1. In the Auto refresh interval field, enter the time (in milliseconds) that you wish to set to auto-refresh

the Amended Orders information.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 153

2. Click the Save button to save the setting and exit the dialog. You are now set to see the refreshedDashboard for Amended Orders after the interval you have specified. Click the Cancel button to exitthe dialog without saving the setting.

Orders in Execution

This section shows the list of all the orders which are in the execution state.

Like other sections,• You can select which columns you wish to see by editing the display preferences. The steps to edit the

preferences are similar to those of Order Summary or Amended Orders section.• By default you can see the top six records of the orders. To see more orders, click the Maximize icon .• If you want to view details for any particular order, click on the respective row and see the details of the

selected order on the Orders page.

Jeopardy Dashboard

This section explains the capabilities of Orders in Jeopardy and the Jeopardy Alerts panels and how to integratethis with the existing Dashboard components. Current Dashboard user interface has been enhanced andimproved for these additional jeopardy panels.

The Jeopardy dashboard will be available only if you have deployed the Jeopardy .war file in Tomcat.If the Jeopardy .war is deployed, and you are unable to view the Jeopardy dashboard, press Ctrl+F5to refresh the page.

The following are the Jeopardy panels:• Orders In Jeopardy• Jeopardy Live Alerts• Jeopardy Recorded Alerts

Orders In JeopardyThe Order in Jeopardy panel lists all the order in a jeopardy state in a

To access the Orders in Jeopardy panel, click the Jeopardy tab.

The following are the details of the Jeopardy tab:

Order reference id of the order in jeopardy. Clickable and takes to order screen.OrderRef Id

Plan Id of the order in jeopardy. Clickable and takes to Plan Screen on OmsUI.Plan Id

The Risk Region comprises below values:Risk Region• NORMAL - the plan item section completed less than the typical duration• HAZARD - the plan item section completed greater than the typical duration but

less than the maximum duration• CRITICAL - the plan item section completed greater than the maximum duration• OUT OF SCOPE – the plan exceeded last acceptable duration limit

TIBCO® Fulfillment Order Management User's Guide

154 | Fulfillment Order Management User Interface

Figure 71:The Orders in Jeopardy Panel

The Orders in Jeopardy allows you to select columns you wish to see by editing the display preferences. Thesteps to edit the preferences are similar to those of Order Summary or Amended Orders section.

To view details for any particular order in jeopardy, click the respective value in the Order Ref Id column.The details of the selected order are displayed on the Orders page. Similarly, you can view the order detailsand jeopardy plan details on the Plans page when you click the value in the Plan Id column.

Jeopardy Live AlertsThe Jeopardy Live Alerts panel displays the live alerts from the Jeopardy Manager.

The details of the Jeopardy Live Alerts panel are as follows:

Timestamp details when jeopardy alert message receivedSubmitted Date

If present in the incoming message from Jeopardy Manager, Plan Id of the orderis display under Plan Id column.

Plan Id

If present in the incoming message from Jeopardy Manager, Plan Item Id of theorder is display under Plan Item Id column.

Plan Item Id

Actual text message contents of the alertReal Time JeopardyAlerts

Figure 72: Jeopardy Live Alerts

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 155

Select which columns you wish to see by editing the display preferences. To edit the preferences, performthe steps mentioned in the Order Summary or Amended Orders section.

You cannot refresh Interval.

If you click on Refresh button, all existing live alert messages will be cleared out. Afterwards these clearedmessages will be available under Jeopardy Recorded Alerts. The in coming messages are always displayedat the top and push the old messages down.

If you want to view details for any particular plan, click the respective row value. The details of the selectedplan are displayed on the Plans page.

Jeopardy Recorded AlertsThe Jeopardy Recorded Alerts panel displays the recorded alerts from the Jeopardy Manager.

The Jeopardy Recorded Alerts panel displays the following information:

Timestamp details when jeopardy alert message recorded in OMS serverSubmitted Date

If present in the incoming message from Jeopardy Manager, Plan Id of the orderis display under Plan Id column.

Plan Id

If present in the incoming message from Jeopardy Manager, Plan Item Id of theorder is display under Plan Item Id column.

Plan Item Id

Actual text message contents of the alert received in OMS.Historical Jeopardy Alerts

Figure 73: Jeopardy Recorded Alerts Panel

Select the columns you wish to see by editing the display preferences. This panel shows the alerts for the past1 hour (default selected in Edit Preferences), 12 hours or 24 hours. To accommodate newly generated alertsunder this panel, refresh or setup the refresh interval in the Edit Preferences icon.

To view details of any particular plan, click the respective row value. The details of the selected plan aredisplayed on the Plans page.

TIBCO® Fulfillment Order Management User's Guide

156 | Fulfillment Order Management User Interface

Orders PageOn the Order page you can view details about the order, including status and revision history of the orders.You can also edit the order and resubmit the order for further fulfillment process.

You can also view the details for initial request and amendments and also take action on the orders. Thefollowing actions are allowed on the Orders page:• Suspend Order: This will be available when an order is in the execution state and not yet completed. This

state is also available when an order fails.• Cancel Order :This will be available before the order goes to the completed state.• Amend Order: This will be available in the OMS UI when the order is in the suspended state.• Withdraw Order: This will be available when the order is in the execution or suspended state. Once the

order is withdrawn, it is not listed in the Order or Plans pages. However, the audit log for the withdrawnorder can be viewed on the the Activity Log page.

• Resume Order: This will be available when the order in the execution state.• Show Execution Plan: You can view the execution plan for the respective order by clicking the Show

Execution Plan option. This option displays the Plans page and the respective plan’s details .• Show Activity Log: You can view the activity log for the respective order by clicking the Show Activity

Log option. Show Activity Log shows flow of change in statuses for each of the entities: order, order-line,plan, and plan-items.

• Show Catalog: Click on Product Id in orderline tab to view the related catalog.

You must have ADMIN privileges (USER_ADMIN role) to do the above mentioned operations.

You need to suspend an order before amending an order.

Viewing Order Priority

To track the order, perform the following steps:

1. Go to http://<host>:<port number>/omsui/Login/Login.jsp to access the Login page where:– host is the computer where you installed the Fulfillment Order Management.– port is the port number of the machine where Fulfillment Order Management installation listens to

the requests. The default port number is 8080.

Figure 74: Order Management System Login

2. Enter the username and password to sign in.

The OMS Dashboard is displayed.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 157

Figure 75: Order Management System Dashboard

3. Go to the Orders page.

The order priority is displayed along with the other order details.

Figure 76: Order Priority

Searching for an Order

You can search for the order from the Fulfillment Order Management GUI. The Orders page allows you tokey in the order reference and filters for the search results. The Orders page shows paginated view of searchresults. You can click on the order link to view details about the order and perform an action on order.

Do the following to search the order:• Go to the Orders page.

Click to refine your search using the search criteria specified in the following table:

DescriptionSearch Criterion

The unique identifier of the order, supplied by the order originator.Order Ref ID

The reference that enables the OMS to retrieve the current customer profileand to identify the customer to other systems interested in the order.

Customer ID

The current status of the order.

The different statuses are:

Status

• START• FEASIBILITY

TIBCO® Fulfillment Order Management User's Guide

158 | Fulfillment Order Management User Interface

DescriptionSearch Criterion

• OPD• EXECUTION• SUSPENDED• COMPLETE• CANCELLED• WITHDRAWN• PREQUALIFICATION FAILED

The date of order submission.Submitted Date

Fulfillment Order Management, where the orders are created.Originator

AFO or IPC (iProcess Conductor). AFO for fulfillment orchestrator.Fulfillment Engine

Order Id is the internal identifier of the Order generated by OMS.Order ID

You can use a combination of search criteria to search for a specific order object. For example, you can selecta status of COMPLETE from the Status column and type the username in the Originator column to find allorders with a status of COMPLETE that were created by a particular user.

The search is case-sensitive.•

Click to display the list of orders that match your search criteria. Select the order to display its details.

Viewing Order Information

The Orders page allows you to view the consolidated view of the order details and perform action(s) on anorder.

To view the consolidated order information, complete the following steps:

Go to the Orders page and click a row in the list of orders to view an order (highlighted in red in the figurebelow). The order details are displayed in the Order Grid View (highlighted in green below).

The Order Grid view displays the details for the order in two panels: the Tree View and the Details view.

Tree View

The Tree View displays the status of the order and each order line. Click an order or order line to display thedetails in the Details View.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 159

If an order has been amended, the Tree View displays the information of the original order and its order linesas well as the amended order and its order lines, with the current status.

The order line status and notifications are listed below:

Order Details View

Order Details View gives different information at order level and order line level.

Click ‘Order’ in the Order Tree View to display details at the order header level.

The order line status and notifications are listed below:

Click an individual order line in the Tree View to display order line level details.

The order line status and notifications are listed below:

Suspending an Order

When you suspend an order, the Fulfillment Order Management suspends each of the processes that areattached to the execution plan. This means that depending on their current statuses, each of the processesassociated with the process components and the plan tasks is suspended.

TIBCO® Fulfillment Order Management User's Guide

160 | Fulfillment Order Management User Interface

To suspend an order, complete the following steps:1. Go to the Orders page.2. Select an order in the order row which you wish to suspend. You can view the details of the order in the

pane below. You can view the current order details, original request, and amendments in the below panealong with the status and revision history of the order.

3.On the top right of the Orders page, click the icon.

Resuming an Order

To resume an order, complete the following steps:1. Go to the Orders page.2. Select an order in the order row which you wish to resume. You can view the details of the order in the

pane below. You can view the current order details, original request, and amendments in the below panealong with the status and revision history of the order.

3.On the top right of the Orders page, click the icon.

Canceling an Order

To cancel an order, complete the following steps:1. Go to the Orders page.2. Select an order in the order row which you wish to cancel. You can view the details of the order in the

pane below. You can view the current order details, original request, and amendments in the below panealong with the status and revision history of the order.

3. On the top right of the Orders page, click the icon.

Amending an Order

You can amend an order when an order is in SUSPENDED state. When an order is in SUSPENDED state youwill be given an option to edit the order.

After selecting the edit option, you can perform the following actions before sending the amendment for theorder:• Add a new order line by clicking the Add Line option.• Remove existing order line by selecting an existing order line and then clicking the Remove Line option.• Add new custom header of Delete existing custom header.• At order line level add new or delete existing Characteristics.• Update the existing order/order line fields.

After completing the changes in the SUSPENDED order, click the Post icon to post the amend order request.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 161

The submitting the amend order request, the SUSPENDED order immediately comes into EXECUTION state.

Plans Page

The Plans page provides details for the plan generated by AOPD. Clicking the Plans tab will give you atabular list for all the plans in your database repository.

You can even filter plans. For more information, see Searching for a Plan.

This tabular view of plans is supported by configurable pagination. Plans per page can be configuredthrough the OMS configurator. Refer to TIBCO Fulfillment Order Management Admininstration fordetails.

You can click an individual plan in the table and see the details for the plan. Each of these views is displayedin the bottom panel.1. Grid View on page 163.2. Dependency View on page 163.3. Jeopardy Rule Configuration on page 167.4. GANTT Chart on page 187.5. Activity Log on page 195.

Searching for a Plan

The Plans page allows you to key in the order reference and filters for the search results and the page showsa paginated view of the search results. To view Plan details, the plan link.

Do the following to search the plan:• Go to the Plans page.

Click to refine your search using the search criteria specified in the following table:

DescriptionSearch Criterion

The unique identifier of the order, supplied by the order originator.Order Ref ID

The unique identifier of the plan.Plan ID

Description of the plan.Description

The current status of the Plan.

The different statuses are:

Status

• START• FEASIBILITY• OPD

TIBCO® Fulfillment Order Management User's Guide

162 | Fulfillment Order Management User Interface

DescriptionSearch Criterion

• EXECUTION• SUSPENDED• COMPLETE• CANCELLED• WITHDRAWN

Fulfillment Order Management where the plans are created.Originator

The date of plan creation.Created On

Date of plan change.Changed On

Order Id is the internal identifier of the Order generated by OMS.Order ID

You can use a combination of search criteria to search for a specific plan object. For example, you can selecta status of COMPLETE from the Status column and type the username in the Originator column to find allplans with a status of COMPLETE that were created by a particular user.

The search is case-sensitive.•

Click to display the list of plans that match your search criteria. Select the plan to display its details.

Grid View

The Grid View is the default view of the Plans page. The Grid View displays:1. Details of the plan including custom headers.2. Details of Plan items, including custom headers, order line, process information and section level

information.3. Milestone IDs along with their dependency information.

Figure 77: Plan View

Dependency View

The Dependency View is a statistical tool, used in project management, that is designed to analyze andrepresent the plan-items involved in completing a given plan.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 163

The major difference between the Dependency View and GANTT chart is that GANTT charts emphasize thetime it takes to complete tasks (plan-items), while Dependency view charts emphasize relationships betweentasks (plan items).

The Dependency View chart has the following components:• Activity nodes• Dependency Type display• Viewing Plan/Plan-Item/Milestone Details• Toolbar

Activity nodes

Each of the activity nodes corresponds to a section. A section is modeled in the plan-fragment model and itconsists of a start and an end milestone. In case there are intermediate milestones in the plan then there canbe multiple sections in the plan-item. The Dependency view shows all the sections that are present in eachplan-item.

The Activity node consists of the following information:1. Start time for a particular section. If the section is still in PENDING state then the start time will be empty.2. End time for a particular section. If the section is still in PENDING/EXECUTION state then the end time

will be empty.3. Typical duration defined in the plan-fragment model for a particular section. Typical duration is modeled

in milliseconds unit.4. Maximum duration value defined in the plan-fragment model for a particular section. Maximum duration

is modeled in milliseconds unit.5. Each section can have one of the following states: PENDING/EXECUTION/COMPLETE. Different color

coding will be used to represent different states of the section.

An Acivity node is illustrated below:

Figure 78: Activity node

Completed states are in green, pending states are gray, and executed states are orange. The Activity node isillustrated below:

Dependency Types

Two types of dependencies are displayed in the Dependency View: Point Dependencies and TimeDependencies.

A Point Dependency, illustrated below, is displayed with yellow connecting arrows that indicate a‘dependent-on’ kind of relationship.

TIBCO® Fulfillment Order Management User's Guide

164 | Fulfillment Order Management User Interface

Figure 79: Point Dependency

The typical critical path is displayed with red connecting arrows. This path, calculated by the JeopardyManagement System, is the longest duration path that can calculated in the plan. For more information, seethe Jeopardy Management System chapter. The typical critical path is illustrated below:

Figure 80:Typical Critical Path

When there is a point dependency on the typical critical path, the red and yellow arrows will overlap, asillustrated below:

Figure 81: Dependency View

The Time Dependency is shown at the start milestone level with color notation, illusrated below:

Figure 82:Time Dependencies

• If a Time Dependency has a START milestone state of PENDING and the time dependency defined onthe milestone is not yet met, the START milestone will be shown with a GREY color dot, illustrated below:

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 165

• If a Time Dependency has a START milestone state of COMPLETE and the milestone was completed onor within the time frame of the assigned time dependency, the START milestone will be shown with aGREEN color dot, illustrated below:

• If a Time Dependency has a the START milestone state of COMPLETE or PENDING and the milestonehas missed the defined time dependency, the milestone will be shown with a RED color dot, illustratedbelow:

Viewing Plan/Plan-Item/Milestone Details

Each row in the details screen represents a single plan-item. The plan-item’s description and plan-item id isused for representing an individual plan-item. Clicking a plan-item description and a plan-item id combinationwill display theplan-item details, illustrated below:

Figure 83: Plan Item Details

Clicking the milestone-id will display the milestone details, as shown below:.

Figure 84: Milestone Details

Toolbar

The toolbar has zoom, plan detail, and help options:

Figure 85:Toolbar

When you hover over the toolbar, you can drag the toolbar anywhere in the frame.

Click the Plan Details icon to display plan details:

Figure 86: Plan Details

Click the Help icon to open the Help window with details on the notations used in the Dependency View.Hover on the images shown in the help to diisplay more information.

TIBCO® Fulfillment Order Management User's Guide

166 | Fulfillment Order Management User Interface

Figure 87: Help window

Jeopardy Rule ConfigurationThis section explains how you can configure jeopardy rules for jeopardy management to send notification,or invoke web services to perform consequential actions. For details on the Jeopardy Management System,see TIBCO Fulfillment Order Management Concepts and Architecture.

The Jeopardy management is a process of monitoring execution of plan to ensure they are completed accordingto a SLA associated with the plan items and plan. Plans are based on a time schedule. When execution ispredicted to violate the schedule, the system raises an event and the user can configure rules to automaticallysend notification or perform consequential action by invoking web service.

The Jeopardy Rule Configuration allows you to configure rules for Jeopardy Management.

Refer to the TIBCO® Fulfillment Order Management Concepts and Architecture document for more details onthe Jeopardy Management System.

The Jeopardy Management System raises the following two types of jeopardy events:• Plan Item Jeopardy• Plan Jeopardy

Plan Item Jeopardy

The plan item jeopardy occurs when plan items exceed or predicted to exceed following thresholds specifiedin a plan fragment model of a process component:• Typical duration• Maximum duration

The visual representation of the jeopardy event payload for the PlanItem Jeopardy event XML object is asfollows:

The following is the visual representation of the plan item:

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 167

The following table lists all the jeopardy events that Jeopardy Management System raises for the Plan Itemjeopardy.

DescriptionPlan Item Jeopardy Conditions

Plan item has exceeded typical durationAFF-JM-PLANITEM-0100

Plan item has exceeded maximum durationAFF-JM-PLANITEM-0110

Plan item has exceeded required startAFF-JM-PLANITEM-0120

Plan item start is predicted to exceed required start and is increasingAFF-JM-PLANITEM-0200

Plan item start is predicted to exceed required start and is decreasingAFF-JM-PLANITEM-0210

Plan item is no longer predicted to exceed required startAFF-JM-PLANITEM-0220

Plan Jeopardy

The plan jeopardy occurs when the execution plan exceeds or is predicted to exceed the following thresholds:

TIBCO® Fulfillment Order Management User's Guide

168 | Fulfillment Order Management User Interface

• Typical Duration• Maximum Duration

Jeopardy event pay load for the Plan Jeopardy is an XML object and shown as follows:

Figure 88: Plan Notification Event

The plan element is visually represented as follows:

Figure 89: Plan Element

Following table lists all the jeopardy events that Jeopardy Management System can raise for the Plan Itemjeopardy:

DescriptionPlan Jeopardy Conditions

Plan has exceeded typical durationAFF-JM-PLAN-0100

Plan has exceeded maximum durationAFF-JM-PLAN-0110

Plan has exceeded out of scope thresholdAFF-JM-PLAN-0120

Plan is predicted to exceed typical duration and is increasingAFF-JM-PLAN-0200

Plan is predicted to exceed typical duration and is decreasingAFF-JM-PLAN-0210

Plan is no longer predicted to exceed typical durationAFF-JM-PLAN-0220

Plan is predicted to exceed maximum duration and is increasingAFF-JM-PLAN-0230

Plan is predicted to exceed maximum duration and is decreasingAFF-JM-PLAN-0240

Plan is no longer predicted to exceed maximum durationAFF-JM-PLAN-0250

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 169

Jeopardy event rules can be configured in the Fulfillment Order Management UI to either send notificationor invoke a web service.

You can use Rule Configuration to do the following:• Add rule• Update rule• Delete rule• Suspend rule• Activate rule

The following table lists the rule header information:

ActionConditionGeneral Details

Action to be taken if condition matchesCriterion to be monitored forJeopardy Management

Name, description, status,Event Group, Event Type, etc.

Adding and Configuring Rule

To add a rule, perform the following steps:1. On the Fulfillment Order UI, click Rule Config2. Click Add.

Figure 90: Adding Rule

Only active rules are used to monitor jeopardy condition.

3. Edit the following rule attributes:

Run on Error /Run on FailureDescriptionName

You can set them to true if you want thesystem to execute in spite of a failure or

description of the rulerule identifier

error in an action. A failure is the samething as an error, except it representscommunication failure to the configuredend point.

Figure 91: Rule Attributes

TIBCO® Fulfillment Order Management User's Guide

170 | Fulfillment Order Management User Interface

Optionally, you may add condition to the rule to filter specific events with attribute values in eventpayload.

Adding Condition to Rule1. On the Fulfillment Order UI, click Condition. The Condition Editor tab is displayed.

Figure 92: Adding Condition to Rule

2. Click Edit Attribute in Condition Editor tab to add or edit conditions. Condition Builder screen will appearas a pop which can be used to configure conditions for this rule.

Figure 93: Edit Attribute

3. A criteria has the Left Operand, Operator and Right Operand, as displayed:

Right OperandOperatorLeft Operand

The right side of a quantity uponwhich a criteria operation isperformed

Performs calculations on theoperands in a query or anexpression

The left side of a quantity uponwhich a criteria operation isperformed

Select Left Operand, Operator and Right Operand from the Condition Builder to create a condition. Left andRight Operand can be selected from a predefined list of attributes or utility methods. Similarly, Operator canalso be selected from a predefined list of attributes depending on the selection of Left Operand.

Selecting Left Operand

To select Left Operand click the Edit icon besides Left Operand in the Condition section. A predefined listof Attributes/utility methods will appear on right side in Attributes section to select as Left Operand. Anattribute or utility method from this available list can be selected.

Using attributes as Left Operand

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 171

Select an attribute from the available list and click the Map icon to assign this value as left operand. Pleaserefer Plan Jeopardy and Plan Item jeopardy section for list of attributes which can be selected as Left Operand.

Figure 94: Condition Builder

Using Utility methods as Left Operand

List of utility methods will appear in Attributes section under utility node. Select a utility method from thislist and click Map icon to assign the return value of this method as Left Operand.

Following table shows the utility methods listed under utility node in Attributes section:

TIBCO® Fulfillment Order Management User's Guide

172 | Fulfillment Order Management User Interface

Figure 95: Utility methods as Left Operand

Values to the input parameters of the method can be assigned using the Edit icon appearing besides methodparameter. When you click Edit, a list of attributes appears on right side and value can be assigned by selectingany attribute. Use Data Input to assign any input value for an input parameter of the method.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 173

Figure 96: Utility Methods

The following table shows supported utility methods with description:

DescriptionMethod Signature

Test if the pattern matches with given text. Parameters: text -java.lang.String to be searched in an effort to find pattern

public boolean wildCardMatch(java.lang.String text, java.lang.Stringpattern) pattern - character or java.lang.String of one or more characters

to be searched for Returns: Returns value true if the given textmatches the pattern and false otherwise

Indicating java.util.Date for specified timestamp in milliseconds.Parameters: inputTimeStamp - milliseconds value as

public java.util.DategetDateFromTimeStamp( java.lang.LonginputTimeStamp) java.lang.Long Returns: java.util.Date object and initializes it

to represent the specified number of milliseconds.

Indicating the day of week for specified timestamp inmilliseconds Parameters: timezone - the timezone (e.g.

public java.lang.Integer getDayOfWeek(java.lang.String timezone, java.lang.String

'America/Chicago') country - the country (e.g. 'US') languagecountry, java.lang.String language,java.lang.Long timestamp) - the language (e.g. 'en') timestamp - the timestamp as

milliseconds Returns: Day of the week as an Integer value forthe timestamp value using the time zone, country and languagespecified

Indicating the day of month for specified timestamp inmilliseconds Parameters: timezone -the timezone (e.g.

public java.lang.Integer getDayOfMonth(java.lang.String timezone, java.lang.String

'America/Chicago') country - the country (e.g. 'US') languagecountry, java.lang.String language,java.lang.Long timestamp) - the language (e.g. 'en') timestamp - the timestamp as

TIBCO® Fulfillment Order Management User's Guide

174 | Fulfillment Order Management User Interface

DescriptionMethod Signature

milliseconds Returns: Day of the month as an Integer value forthe timestamp value using the timezone, country and languagespecified.

Select an Operator

To select an Operator, click Edit icon besides Operator in condition section a list of operators with descriptionwill appear on right side. Select any operator to assign Operator value.

Figure 97: Selecting an Operator

Select Right Operand

To select Right Operand click Edit button besides Right Operand in Condition section. A list of attributesappears on the right side in the Attributes section to select as Right Operand. Select any attribute from theavailable list or input a value by selecting Data Input from Attributes section and click Map icon to assignthis value as the Right Operand.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 175

Figure 98: Selecting Right Operand

4. Click Generate Groovy Method to verify the criteria and generate a corresponding expression

TIBCO® Fulfillment Order Management User's Guide

176 | Fulfillment Order Management User Interface

Figure 99: Groovy Method

An expression is generated using the selected Left Operand, Operator, Right Operand and it is displayed inthe Condition Expression section.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 177

Figure 100: Expression

5. Click Save to add condition to Condition Editor.

6. To add more condition click Add icon as shown below. To add a nested condition click Add Nested icon.Match All will be used if all the conditions need to be evaluated true for this rule to execute. Match Any willbe used if any of the specified conditions need to be evaluated true for this rule to execute.

Figure 101: Condition Editor

Conditions in the Condition Editor are shown as follows: You can delete a Condition or nested condition from theCondition Editor using the Delete icon.

TIBCO® Fulfillment Order Management User's Guide

178 | Fulfillment Order Management User Interface

Figure 102: Deleting Condition

Groovy script generated from a defined condition is shown in the Expression tab as follows.

Figure 103: Groovy script generated from a defined condition

Rule Actions

The rule actions are as follows:

Delete Rule

1. Select an existing rule to delete.2. Click Delete.

Figure 104: Delete Rule

Suspend Rule

1. Select an existing rule to suspend.2. Click Suspend.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 179

Figure 105: Suspend Rule

Activate Rule

1. Select an existing rule to activate.2. Click Activate.

Figure 106: Activate Rule

Configure Actions

The Jeopardy Management System (JeOMS) supports the following two types of consequential actions forjeopardy events:1. Alert or Notification - Supports sending notification to the following end points:

a. SMTP - notification to specific email accounts.b. JMS - JMS (Java Message Service) messages to JMS queue or topic.c. Tibbr - notification message to Tibbr subject.d. File - log notification messages.

2. Service Invocation - Supports invoking web services which uses WSDL 1.1 specification.

Jeopardy Management System also allows you to specify dampening criteria to action. Give the dampening(or flow control) criteria to action on how often to send notifications or invoke service for the same jeopardyevent.

The frequency for sending alerts depends on the expected behavior of the process component. There areseveral frequency settings:• Every time the jeopardy rule condition evaluates to true. This sends the most alerts. It's the default setting

if dampening criteria is not specified.• Every X times the condition is true. This sets a number of times that the condition has to occur before an

action is executed. This offsets any occasional spikes in executing plan item in process component or inthe fulfillment system. To add this criteria set following values:

Notification CountEvaluation CountTrue Count

1YX

• Every X times the condition is true in Y evaluations. This sets a number of times that the condition has tooccur in a given number of monitoring evaluations cycles before an action is executed.

Notification CountEvaluation CountTrue Count

1YX

TIBCO® Fulfillment Order Management User's Guide

180 | Fulfillment Order Management User Interface

Every X times the condition is true in Y time period.

Time UnitTime ValueNotification CountEvaluationCount

TrueCount

Period((SECOND/MINUTE/HOUR/DAY/WEEK/MONTH))

Y1YX

• No more than X notification in Y time period

Time UnitTime ValueNotificationCount

EvaluationCount

TrueCount

Period((SECOND/MINUTE/HOUR/DAY/WEEK/MONTH))

Y1YX

Webservice Configuration

Add Action

1. Click Add Action.2. Edit the following action attributes:

Dampening Criteria(Optional)

Notification typeDescriptionName

specify any dampeningcriteria to the action

Select Service Parametertab

Select serviceaction descriptionaction identifier

Enter the WSDL location

If WSDL locationis valid, Serviceand Method arepopulated withrespective values.Select a servicename andMethod name tobe invoked

3. Enter the parameter information.

4. Click the Template tab. It shows the web service request parameters in an XML form. This requestparameter can be configured using Template Builder. Click the icon in Template tab to use TemplateBuilder and a popup would appear with a predefined list of parameters.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 181

Figure 107:The web service request parameters in an XML form

Configure input parameters using the list of attributes and this would be replaced with actual valueswhile invoking the web service.

5. Click Save. Webservice request parameters would be saved and display in the Template tab.

Delete Action

• Select an existing action.• Click Remove Action.

Notification Action Configuration

The notification action configuration is follows:

Add Action

1. Click Add Action.2. Edit the following action attributes:

TIBCO® Fulfillment Order Management User's Guide

182 | Fulfillment Order Management User Interface

Figure 108: Action Attributes

Dampening Criteria(Optional)

Notification typeDescriptionName

specify any dampeningcriteria to the action

Select notificationaction descriptionaction identifier

-

3. Select Notification Parameter tab4. Select the protocol5. Enter end point URI. The following table shows supported protocols with syntax and example

ExampleURI SyntaxEnd Point Type

jms:queue:jeopardy.notificationjms:queue:<queue name>JMS Queue

jms:topic:jeopardy.notificationjms:topic:<topic name>JMS Topic

tibbr://xyz.tibbr.comtibbr://<hostname:port>Tibbr

smtp://smtp.xyz.com:25smtp://<hostname:port>SMTP

smtps://smtp.xyz.com:465smtps://<hostname:port>SMTPS

file:///opt/notificationfile://<filepath>File

6. Select message type for the notification. The following table shows protocol and supported out messagetype

OutBound Message TypeProtocol

plainStringOutMessageJMS

jsonMessage

javabean

xmlOutMessage

plainStringOutMessageTibbr

plainStringOutMessageSMTP

xmlOutMessage

SMTPS plainStringOutMessage

xmlOutMessage

File plainStringOutMessage

jsonMessage

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 183

OutBound Message TypeProtocol

javabean

xmlOutMessage

The following table shows supported out message type:

DescriptionOutBound Message Type

Notification message in plain stringplainStringOutMessage

Notification message in form of json objectjsonMessage

Notification message in form of javabean objectjavabean

Notification message in form of xml stringxmlOutMessage

7. Edit parameters information for selected protocol. The following table shows protocol and respectiveparameters configuration required:

8. Edit Template to configure plainStringOutMessage content using Template Builder. Click icon mentionedin following image in Template tab to open Template Builder screen:

TIBCO® Fulfillment Order Management User's Guide

184 | Fulfillment Order Management User Interface

Figure 109:Template

9. Following is the Template Builder screen which has all the notifications parameters listed to configure atemplate for notification messages.

Figure 110:Template Builder Notifications

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 185

10. Click Save to save the template content in action.11. Click Test Action to verify the action created is valid. If there is no error, the Test Connection Successful

message is displayed.

If there is any error respective error message is displayed. The following table shows error messages, whichare displayed:

TIBCO® Fulfillment Order Management User's Guide

186 | Fulfillment Order Management User Interface

Hot Deployment

Rules configured using OMS UI are hot deployable, therefore Apache Tomcat where Jeopardy ManagementSystem (JeOMS) deployed need not be restarted to activate the rules. Rules configured through OMS UI arepublished to all instances of JeOMS in cluster.

GANTT Chart

You can view the orchestration of an execution plan by using the Gantt chart.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 187

The GANTT chart displays the following objects as a graphical representation on the Fulfillment OrderManagement UI:• Plan Summary Task• Plan Item Summary Task• Milestones• Sections• Typical duration constraint for the section• Maximum Duration constraint for the section• Forecast the Plan in execution (Prediction)• Show Critical path• Time dependencies and point dependencies• Different Regions in which a Plan can be – Typical Duration, Risk Threshold, Maximum Duration,

Contingency Buffer, Out-Of-Specification region• Show Jeopardy conditions• You can view the GANTT chart in different time scale levels (zoom levels), starting from weeks till the

milliseconds level

Configuration

When you deploy JEOMS, JEOMS sends the heartbeat on topic - tibco.aff.jm.publish.jeomsHeartBeat. TheOMS-UI listens to the JEOMS heartbeat and shows the Gantt chart with all the options available. When JEOMSis not deployed, OMS-UI shows the Gantt chart with limited options.

The Jeopardy Detection Reset Timeout value is used by OMS-UI. If the heartbeat is not received by OMS-UIwithin the specified milliseconds, then JEOMS will be considered as un-deployed.

The Jeopardy Detection Publish Topic and Jeopardy Detection Reset Timeout property can be configuredthrough configurator as shown in the below screenshot

Figure 111: Configurator - Gannt Chart Without JEOMS

When you opt for deploying JEOMS again; you need to publish the plan-fragment models again.Plans which are in execution will not be part of Jeopardy cycle but UI will be able to enrich the planand show the Gantt chart

JEOMS when deployed enriches the plan and this enriched plan is used by Gantt chart to plot some of theinformation. You can choose not to deploy JEOMS and still view the Gantt chart.

TIBCO® Fulfillment Order Management User's Guide

188 | Fulfillment Order Management User Interface

When JEOMS is not deployed Gantt chart won’t show the following:1. Real time predictions for the Gantt chart of the plan. Predicted Gantt chart for the plan will be based on

the typical duration set in plan-fragment model.2. Background color of Gantt chart for plan in different states.

A grey color is used as a background color for the plan when JEOMS is not deployed.

3. Jeopardy Messages/Notifications on the tool tip of Gantt chart items.

Viewing a GANTT ChartThe GANTT chart displays the execution plan as a graphical representation.

Procedure

1. Go to the Plans page.2. Select any plan.

.3. Click the GANTT chart icon to view a diagram of the selected plan.

For details on the GANTT chart, see GANTT Chart Details on page 192

GANTT Chart ComponentsThe GANTT chart is made up of several key components.

The following are the components of the GANTT chart:• Grid Header• Grid• Top and Bottom Toolbars• GANTT Header• GANTT diagram

Top Tool BarThe top tool bar changes according to the plan status.

The following table shows the GANTT charts depending upon the plan status:

GANTT ChartPlan Status

COMPLETE orCANCELLED

PENDING andEXECUTION

SUSPENDED

The top tool bar has the following two display options:• Plan View: This combo-box has different values based on the execution plan status.

- Plan Status COMPLETE or CANCELLED: Shows the GANTT with Actual & Original view.

- Plan Status EXECUTING or PENDING: Shows the GANTT with Predicted & Original view.

- Plan Status SUSPENDED: Shows the GANTT with Original view.

Different execution plan views shown in GANTT chart

Actual view: Shows the plan, plan items, sections & milestone with actual timestamp value.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 189

Predicted view: Plan item with status as EXECUTING or PENDING are shown with predicted timestampvalue and plan items with the COMPLETE status is shown with actual timestamp value.

Original view: Shows plan, plan items, sections, and milestone with typical timestamp value.

• Critical Path: This check-box shows the critical path with the specified plan view.

Bottom Tool Bar

The bottom tool bar has the following options:• Zoom Options: Allows you to select the zoom level. The GANTT diagram changes according to the

selected zoom level. You can select the following zoom options:– Week– Days– Hours– Minutes– Seconds– MillisecondsThe Zoom options are available for the user according to the difference between plan start date and planend date. For example, if the difference between plan start date and plan end date is more than 1 hourbut less than 24 hours, different zoom levels available are - Hours, Minutes, Seconds, Milliseconds.

• Auto-fit: Allows you to fit the Gantt chart to the best possible zoom level. The GANTT diagram changesaccordingly.

• Help: Shows the color coding for the GANTT chart.

Grid HeaderThe Grid Header component shows the ID, Action, Plan Details, Status,START, END, Decedents, DurationConstraint and Description for each grid column

The following table shows the constituents of a Grid Header:

Shows numeric values starting from 1…n.ID

Shows the following Plan information:Plan Details

ConventionType

Plan ID according to the generated plan.Plan

Plan Item description from the plan.Plan Item

Milestone ID. For Example, START or END.Milestone

Merged Milestone IDs with "-" as delimiter. Forexample START-END.

Sections

TIBCO® Fulfillment Order Management User's Guide

190 | Fulfillment Order Management User Interface

All the status icons used in this column are similar to icons used in the Plantab grid level.

Status

The start time for each Plan Details.START

The value is in the MM/dd/yyyy HH:mm:ss z format (z stands fortime zone offset).You can configure this value through theConfigurator.

The end time for Plan, Plan Item & Section.END

The value is in the MM/dd/yyyy HH:mm:ss z format (z stands fortime zone offset).You can configure this value through theConfigurator.

The ID value for the next dependent milestone, if any.Descendants

The Date format value showing maximum end value at the section level.Section Maximum End

The Date format value showing typical end value at the section level.Section Typical End

This column contains icons. Clicking icons details for that particular row areshown in a popup window. For example, if you click the icon in action column

Action

at plan level, popup appears with plan details. If you click the icon in actioncolumn at plan item level so popup is shown with plan item details andlikewise.

GANTT Chart Diagram

The following table describes the different GANTT chart components:

DescriptionComponent

Indicates the entire plan, from start till end.Plan Summary Task Bar

Indicates the plan item covering all the milestones and sections of a plan item.Plan Item Summary TaskBar

Represented by a grey diamond.Milestone

Indicates the START and END milestones part.Section

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 191

DescriptionComponent

The two forecast types are shown at the section level:Duration• Typical Duration .• Maximum Duration .

Indicates the path with maximum time duration. It is represented by the sectionbar with red border . When you click the critical path option

Critical Path

check-box on the top tool bar, only the critical path is shown with red bordersections.

Shows the details of the respective GANTT item when you place the cursorover any GANTT chart items, for example, plan, plan item, section, milestone,typical or maximum duration icons.

Tool tip

Time dependency: Represented by the icon at the section level, if a sectionhas started on the specified time dependency. If section start time has missed

the specified time dependency, it is represented by the icon.

Point dependency: Represented by connecting arrow. This is a unidirectionalarrow which connects two milestones.

Time and PointDependencies

GANTT Chart Details

The different color schemes used in the GANTT chart to visually represent the status of the execution planand plan item sections are as follows:

GANTT Chart Background Colors

The background color describes the status of the plan. The following figure displays the background colorcodes representing the execution plan in different states:

Figure 112: GANTT Chart Background Colors

Each color in the GANTT chart has its own significance. The following table describes the GANTT chartbackground colors:

TIBCO® Fulfillment Order Management User's Guide

192 | Fulfillment Order Management User Interface

GANTT Chart Section Color

The Section level color code describes the status of the section. The following figure displays the section colorcodes representing the plan item section in different states:

If the section has not started its execution or the section is in the execution state, it is represented by

grey color .

The following figure displays all the available section colors:

Figure 113: Section Colors

The following table describes the GANTT chart section level colors:

GANTT Chart Time Snapshot Line

The Time snapshot line represents the time when Gantt chart is loaded on the UI.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 193

Figure 114:Time Snapshot Line

Tooltips

Each of the items on Gantt diagram has a tooltip which has further information about that particular Ganttitem.

Here is a desription of tooltips for each of the Gantt items and the information that will be displayed whenuser take mouse pointer over a Gantt item:•

Figure 115: Plan Summary Task Bar tooltip

Figure 116: Plan Item Summary Task Bar tooltip

Figure 117: Milestone tooltip

Figure 118: Section tooltip

TIBCO® Fulfillment Order Management User's Guide

194 | Fulfillment Order Management User Interface

Figure 119:Typical End Icons tooltip

Figure 120: Maximum End Icons tooltip

Activity Log

This section explains how to view the status of objects in the Fulfillment Order Management using the ActivityLog page.

About Activity Log

You can view a detailed log of activities for an Order, Plan, Rule and FP Orders to see the history at run-timeand perform a search on the following objects in the Fulfillment Order Management:• Order Ref• Plan Id• Rule Name• FP Order Id• FP OrderLine Id• FP Resource Id• FP TechnicalOrder Id

An activity log displays messages for the following actions:• status changes

Messages are grouped chronologically by the object type. You can press the Refresh button at any timeto update the current view.

Viewing the Activity Log

You must search an object to view the activity log associated with a particular object. To do this, refer toSearching for an Order in the Activity Log on page 195.

Searching for an Order in the Activity Log

To view an activity log for a selected object, you must first search for it from the Activity Log page. Once youhave found the object whose log you wish to view, select it to display it in the Activity Log page. To do this,perform the following steps:1. Access the Fulfillment Order Management.2. Click the Activity Log tab.3. In the Search field, type the reference ID of an order to search.

The text is case-sensitive.

Figure 121: Searching Order

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 195

4.Click the Search button . Either of the following is the search result:a. The details of an order that matches your search criteria is displayed.b. If no match is found, no list is displayed.

Interpreting the Log Messages

It is important to interpret and understand the meaning of the log messages. To explain the log message,given below is an example illustrating a search performed on an order.

Figure 122: Log Message

The following information is displayed about the searched order:

DescriptionColumn Heading

The date and time the object was updated.Date

The reference ID of the object.Ref

The object type, for example, order, plan, order line, or plan item.Type

The action that was performed on the object. Refer to Understanding the Typesof Log Messages on page 196 to know about the different types of log messagesand their respective meanings.

Message

Understanding the Types of Log Messages

The log messages describe the action that was performed on the object. That action can be any one of thefollowing:

DescriptionLog Message

updated an order where:Updated object from status status to status

• object is either order, plan, order line, or plan item• the first status is the object’s previous status; the second status

is the status the object has been changed to.

an order has been amended where:Amended order id of status status

• order id is the unique ID of the order.• status is the current status of the order.

an order has been created where:Order order id created with status status

• order id is the unique ID of the order.• status is the current status of the order.

TIBCO® Fulfillment Order Management User's Guide

196 | Fulfillment Order Management User Interface

Catalog Tab

The Catalog tab allows you to see the catalog based view of the selected enterprise. The view show the initialFulillment Catalog Hierarchy Manager in edit mode where you can drag and drop a particular product andsee the Hierarchy view of it.

You are able to view the product model by clicking the Product Id in the orderline tab. The selected product'smodel will be shown in the Catalog tab. Click the Back button to navigate back to order's tab with selectedorder Id.

The Catalog tab allows you to view the available product configured in the Product repository in right handtree view.

Figure 123: Catalog Tab

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 197

Fulfillment Provisioning Service Order Hierarchy

The FP Service order is displayed in plan tab of Fulfillment Order Management. It is integrated with the Planitem tree hierarchy displayed at left side of the Plan tab. The FP Service Order (SO) integration with the plantree hierarchy display:• Milestone for the related plans. The milestone contains the START, END, and intermediate milestones• The hierarchy with the FP service order ID, which contains the child node as the OrderLine, Rollback

flow, and nominal flow• The Rollback and Nominal node contain technical order IDs• All the technical order line IDs, which can be rolled back are contained under the Rollback flow

If there is no rollback associated with service order then all the technical order IDs fall under theservice order node.

The Fulfillment Provisioning flow accepts and parses an incoming provisioning message and generates acorresponding service order. The product orders are also created and attached to the service order.

Fulfillment Order Management performs a number of important tasks on the product order, according to itscurrently defined rules and other configuration. These tasks include:• Decompose each product order into one or more technical product orders• Validate, add, exclude, and sort these technical product orders and attach product order flows to them• Enrich the data with specific provisioning parameters

TIBCO® Fulfillment Order Management User's Guide

198 | Fulfillment Order Management User Interface

Fulfillment Provisioning Attributes and Parameters

The Fulfillment Provisioning parameters and attributes are displayed on the right side panel of the Plan page.These are displayed from the FP server based on the following node type selected from the Plan panel:• Service Order• Order Line• Technical Order Line• Resource Order Line

The attributes and parameters have name-value pairs based on the node selected in the Plan treepanel. The corresponding process flow is displayed based on the selected node. If the Plan item doesnot contain the FP service order, then only Milestone is added to the hierarchy view.

If a Plan item contains the FP service order then the service order is displayed as:

Figure 124: FP Service Order View

Fulfillment Provisioning Process Flow

The Fulfillment Provisioning parameters and attributes are displayed on the right side panel of the Plan page.These are displayed from the FP server based on the following node type selected from the Plan panel:• Service Order• Order Line• Technical Order Line

The Process Flow displays a graphical representation of process flow for the selected node.

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 199

Figure 125: FP Process Flow

TIBCO® Fulfillment Order Management User's Guide

200 | Fulfillment Order Management User Interface

Searaching for Fulfillment Provisioning Components

When you select Order Id, Order Line Id, Technical Order Id or Resource Id, a filter icon is displayed. Clickthe icon to display the coresponding search fields.

Figure 126: Filter Icon

For Order Line Id, Technical Order Id and Resource Id, the search textbox is disabled and and youneed to select minimum and mandatory fields from the filter. Follow the steps below:

1. Click the Activity Log tab.2. In the Search By box, select FP components3. In the Search field, type the FP order Id or select the filter.4. Click Enter or the search icon to rertrive records.

Figure 127: Filter Icon

TIBCO® Fulfillment Order Management User's Guide

Fulfillment Order Management User Interface | 201

Chapter

6Data Access Interfaces

Overview

In the ActiveFulfillment 1.2.0 architecture, the Transient Data Store component was a BE engine intended to storethe intermittent data such as the user defined data passed into the order, propagated in the plan and required bythe process components during the order life cycle.

The primary functionalities of Transient Data Store BE engine were as follows:• Storing the full order and plan data in a transient, fault-tolerant data store.• Returning the order and plan data to the requesting process components over the standard JMS interfaces.

In Fulfillment Order Management 2.0.0, the BE-based Transient Data Store component has been removed from thearchitecture. The required functionality and interfaces are now handled by the OMS server component and drivenby the order and plan data in OMS database. This has helped simplify the architecture and avoid the duplicationof data in OMS database and TDS backing store database.

The following sub-sections cover the details of various data access JMS interfaces which are now exposed by OMS.

The schema for these interfaces is$AF_HOME/schemas/schema/tds/sharedResources/schemas/services/TransientDataStoreService.xsd.

Topics

• Get Order• Get Plan• Get Plan Items• Set Plan• Set Plan Item

TIBCO® Fulfillment Order Management User's Guide

Get Order

Overview

The GetOrder interface can be used by the process components to retrieve a specific order from the FulfillmentOrder Management system. It is a synchronous request/reply interface on a JMS queue that returns a replyeither to the specified JMSReplyTo destination on the request message or to the default reply queue if notspecified.

If an exception occurs during Get Order operation then it is logged into the omsServer log. The details of theexception are returned in the response.

Get Order Request

The request specification is as follows:

QueueQueue or Topic

tibco.aff.tds.order.read.requestDestination

The following properties should be passed in the request message header:

DescriptionCardinalityTypeElement

Interface identifier name; MUST be set asGetOrderRequestEvent.

RequiredString_nm_

Unique identifier for tracing purposes across function calls.This is used for logging.

OptionalStringbusinessTransactionID

Unique identifier for tracing purposes across a singlefunction call. This is generally used by the callingapplication to correlate requests and responses.

OptionalStringcorrelationID

Internal unique identifier for the order to retrieve.RequiredStringorderID

If set to true:

The response will be sent on the temporary queue bydefault or on the destination set as JMSReplyTo propertyin the request message.

RequiredBooleanrequestReply

If set to false:

The response will be sent on tibco.aff.tds.order.replyqueue.

If true, retrieve all versions of the order in case ofamendments.

RequiredBooleanallValues

There is no body (payload) associated with the request message.

Get Order Response

The response specification is as follows:

TIBCO® Fulfillment Order Management User's Guide

204 | Data Access Interfaces

QueueQueue orTopic

temp queue or JMSReplyTo destination or tibco.aff.tds.order.reply queueDestination

The response message contains the following header properties:

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across function calls.This is used for logging.

OptionalStringbusinessTransactionID

Unique identifier for tracing purposes across a single functioncall. This is generally used by the calling application tocorrelate requests and responses.

OptionalStringcorrelationID

Flag indicating if the call was successful.RequiredBooleansuccess

Result message code.RequiredStringmessageCode

Result message.RequiredStringmessage

Internal unique identifier for the order specified in the request.RequiredStringorderID

Flag indicating if the order was found.RequiredBooleanfound

The response message contains the XML payload as per the following schema:

Figure 128: Get Order Response

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across function calls.OptionalStringbusinessTransactionID

Result status type. See Appendix A for the specification of thistype.

RequiredTyperesultStatus

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 205

Order type. If the order is not found this will be omitted.OptionalTypeorder

Internal unique identifier for the order.RequiredStringorder/orderID

External unique identifier for the order.RequiredStringorder/orderRef

The internal unique identifier for the plan for the order if it exists.OptionalStringorder/planID

The Status of the order from a cache data store perspective (activeor complete)

RequiredStringorder/status

Xml string representation of the order, multiple if all versions arerequested, otherwise just the active one

0-MStringorder/serializedOrder

Get Order Messages and Message Codes

The error codes and their respective error messages for the Get Order interface are as follows:

Table 5: Get Order Messages and Message Codes

SituationMessage inResultStatusElement

Code in ResultStatus Element

Message inResponse Header

Message Code inResponse Header

Order is found anddata mapped in the

""""SuccessAFF-TDS-0000

responsesuccessfully.

Order not found fororderID <orderID>.

Unexpected Element<orderID>

AFF-TDS-ORD-0100Unexpected Element<orderId>

AFF-TDS-ORD-0100

Some exception isthrown while

Internal ErrorAFF-TDS-9999Internal ErrorAFF-TDS-9999

processing therequest.

Database is notavailable while

Database issuefound. Cannotprocess the request.

AFF-OMS-999999Database issuefound. Cannotprocess the request.

AFF-OMS-999999

processing therequest.

TIBCO® Fulfillment Order Management User's Guide

206 | Data Access Interfaces

Get Plan

Overview

The GetPlan interface can be used by the process components to retrieve the plan corresponding to an orderfrom the FOM system. It is a synchronous request/reply interface on a JMS queue that returns a reply eitherto the specified JMSReplyTo destination on the request message or to the default reply queue if not specified.

If an exception occurs during GetPlan operation then it is logged into the omsServer log. The details of theexception are returned in the response.

Get Plan Request

The request specification is as follows:

QueueQueue or Topic

tibco.aff.tds.plan.read.requestDestination

The following properties should be passed in the request message header:

DescriptionCardinalityTypeElement

Interface identifier name; MUST be set asGetPlanRequestEvent.

RequiredString_nm_

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Internal unique identifier for the plan to retrieve.RequiredStringplanID

Unique identifier for tracing purposes across asingle function call. This is generally used by the

OptionalStringcorrelationID

calling application to correlate requests andresponses.

If set to true:

The response will be sent on the temporary queueby default or on the destination set as JMSReplyToproperty in the request message.

RequiredBooleanrequestReply

If set to false:

The response will be sent ontibco.aff.tds.plan.reply queue.

If true will only return the IDs of elements ratherthan all plan data. Otherwise if false will return allplan data.

RequiredBooleanidsOnly

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 207

If true will return all plan items with the plan.Otherwise if false then only the plan details arereturned.

RequiredBooleanincludeItems

The component which has originated this call. E.g.the name of the process componentPC_BUNDLE_PROVIDE.

OptionalStringoriginator

There is no body (payload) associated with the request message.

Get Plan Response

The response contains a UDF, namely 'PLAN_DESCRIPTION' under the Plan element which gives the plandescription to the process components. This value comes from the order description provided during ordersubmission process. If the order description is not provided then a default plan description 'Plan For' <orderref> is returned in the PLAN_DESCRIPTION UDF field.

The response specification is as follows:

QueueQueue or Topic

temp queue or JMSReplyTo destination or tibco.aff.tds.plan.reply queueDestination

The response message contains the following header properties:

DescriptionCardinalityTypeElement

Unique identifier for tracingpurposes across function calls.This is used for logging.

OptionalStringbusinessTransactionID

Unique identifier for tracingpurposes across a single function

OptionalStringcorrelationID

call. This is generally used by thecalling application to correlaterequests and responses.

Flag indicating if the call wassuccessful.

RequiredBooleansuccess

Result message code.RequiredStringmessageCode

Result message.RequiredStringmessage

Internal unique identifier for theplan specified in the request.

RequiredStringplanID

Flag indicating if the plan wasfound.

RequiredBooleanfound

The response message contains the XML payload as per the following schema:

TIBCO® Fulfillment Order Management User's Guide

208 | Data Access Interfaces

Figure 129: Get Plan Response

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Result status type. See Appendix A for thespecification of this type.

RequiredTyperesultStatus

Plan type. If the plan was not found this will beomitted.

OptionalTypeplan

Internal unique identifier for the plan.RequiredStringplan/planID

Internal unique identifier for the order for the plan.RequiredStringplan/orderID

External unique identifier for the order for the plan.RequiredStringplan/orderRef

UDF type.0-MTypeplan/udf

Type of the user defined field.OptionalStringplan/udf/type

Flavour of the UDF. The valid values are one of thefollowing three:

OptionalStringplan/udf/flavour

• config - For UDF corresponding to acharacteristic in the product model or a systemUDF generated by AOPD.

• input - For UDF passed in the order.

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 209

• output - For UDF set by the process component.

Field name.RequiredStringplan/udf/name

Field value.OptionalStringplan/udf/value

Original field value at time of plan creation.OptionalStringplan/udf/originalValue

Timestamp when the UDF was last modified.OptionalDateTimeplan/udf/lastModified

Plan item type.0-MTypeplan/planItem

Internal unique identifier for the plan item.RequiredStringplan/planItem/planItemID

Name of the process component.OptionalStringplan/planItem/planItemName

UDF type.0-MTypeplan/planItem/udf

Type of the user defined field.OptionalStringplan/planItem/udf/type

Flavour of the UDF. The valid values are one of thefollowing three:

OptionalStringplan/planItem/udf/flavour

• config - For UDF corresponding to acharacteristic in the product model or a systemUDF generated by AOPD.

• input - For UDF passed in the order.• output - For UDF set by the process component.

Field name.RequiredStringplan/planItem/udf/name

Field value.OptionalStringplan/planItem/udf/value

Original field value at time of plan creation.OptionalStringplan/planItem/udf/originalValue

Timestamp when the UDF was last modified.OptionalDateTimeplan/planItem/udf/lastModified

IDs of the plan items which depend on the currentplan item.

0-MStringplan/planItem/parentID

IDs of the plan items on which the current plan itemdepends.

0-MStringplan/planItem/childID

IDs of the plan items corresponding toSIBLING_PRODUCT_* of the product fulfilled bycurrent plan item.

0-MStringplan/planItem/siblingID

IDs of the plan items corresponding toDEPENDENT_PRODUCT_* of the product fulfilledby current plan item.

0-MStringplan/planItem/dependentID

Status of the plan from a data perspective: active orcomplete.

RequiredStringplan/status

Plan description.OptionalStringplan/planDescription

Get Plan Messages and Message Codes

The error codes and their respective error messages for the Get Plan interface are as follows:

TIBCO® Fulfillment Order Management User's Guide

210 | Data Access Interfaces

Table 6: Get Plan Messages and Message Codes

SituationMessage inResultStatusElement

Code in ResultStatus Element

Message inResponse Header

Message Code inResponse Header

Plan is found anddata mapped in the

SuccessAFF-TDS-0000SuccessAFF-TDS-000

responsesuccessfully.

Plan not found forplanID <planID>.

Unexpected Element<planID>

AFF-TDS-ORD-0100SuccessAFF-TDS-000

Some exception isthrown while

Internal ErrorAFF-TDS-ORD-0100Internal ErrorAFF-TDS-9999

processing therequest. It is logged.

Database is notavailable while

Database issuefound. Cannotprocess the request.

AFF-OMS-999999Database issuefound. Cannotprocess the request.

AFF-OMS-999999

processing therequest.

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 211

Get Plan Items

Overview

The GetPlanItems interface can be used by the process components to retrieve the data of one or many planitems in the plan corresponding to an order from the FOM system. It is a synchronous request/reply interfaceon a JMS queue that returns a reply either to the specified JMSReplyTo destination on the request messageor to the default reply queue if not specified.

If an exception occurs during GetPlanItems operation, then it is logged into the omsServer log. The detailsof the exception are returned in the response.

Get Plan Items Request

The request specification is as follows:

QueueQueue or Topic

tibco.aff.tds.plan.read.requestDestination

The following properties should be passed in the request message header:

DescriptionCardinalityTypeElement

Interface identifier name; MUST be set asGetPlanItemsRequestEvent.

RequiredString_nm_

Unique identifier for tracing purposesacross function calls.

OptionalStringbusinessTransactionID

Internal unique identifier for the plan toretrieve.

RequiredStringplanID

Unique identifier for tracing purposesacross a single function call. This is

OptionalStringcorrelationID

generally used by the calling application tocorrelate requests and responses.

If set to true:

The response will be sent on the temporaryqueue by default or on the destination set

RequiredBooleanrequestReply

as JMSReplyTo property in the requestmessage.If set to false:

The response will be sent ontibco.aff.tds.plan.reply queue.

If true will only return the IDs of elementsrather than all plan data. Otherwise if falsewill return all plan data.

RequiredBooleanidsOnly

TIBCO® Fulfillment Order Management User's Guide

212 | Data Access Interfaces

The component which has originated thiscall. E.g. the name of the process componentPC_BUNDLE_PROVIDE.

OptionalStringoriginator

The request message body should contain the XML payload as per the following schema:

Figure 130: Get Plan Items Request

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across function calls.OptionalStringbusinessTransactionID

Internal unique identifier for the plan to retrieve.RequiredStringplanID

If true will only return the IDs of elements rather than allplan data. Otherwise if false will return all plan data.

OptionalStringidsOnly

Currently not implemented.OptionalStringudfFlavour

Currently not implemented.OptionalStringudfMatch

Plan item type.0-MTypeplanItem

Internal unique identifier for the plan item to retrieve.RequiredStringplanItem/planItemID

Not Applicable.OptionalStringplanItem/planItemName

Not Applicable.0-MTypeplanItem/udf

Not Applicable.0-MStringparentID

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 213

Not Applicable.0-MStringchildID

Not Applicable.0-MStringsiblingID

Not Applicable.0-MStringdependentID

Get Plan Items Response

The response specification is as follows:

QueueQueue or Topic

temp queue or JMSReplyTo destination or tibco.aff.tds.plan.reply queueDestination

The response message contains the following header properties:

DescriptionCardinalityTypeElement

Unique identifier for tracing purposesacross function calls. This is used forlogging.

OptionalStringbusinessTransactionID

Unique identifier for tracing purposesacross a single function call. This is

OptionalStringcorrelationID

generally used by the callingapplication to correlate requests andresponses.

Flag indicating if the call wassuccessful.

RequiredBooleanSuccess

Result message code.RequiredStringmessageCode

Result message.RequiredStringMessage

Internal unique identifier for the planspecified in the request.

RequiredStringplanID

Flag indicating if the plan was found.RequiredBooleanFound

The response message contains the XML payload as per the following schema:

TIBCO® Fulfillment Order Management User's Guide

214 | Data Access Interfaces

Figure 131: Get Plan Items Response

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls.

See ImageStringbusinessTransactionID

Result status type. See Appendix A for thespecification of this type.

See ImageTyperesultStatus

Plan item type.0-MTypeplanItem

Internal unique identifier for the plan item.RequiredStringplanItem/planItemID

Name of the process component.OptionalStringplanItem/planItemName

UDF type.0-MTypeplanItem/udf

Type of the user defined field.OptionalStringplanItem/udf/type

Flavour of the UDF. The valid values are oneof the following three:

OptionalStringplanItem/udf/flavour

• config - For UDF corresponding to acharacteristic in the product model or asystem UDF generated by AOPD.

• input - For UDF passed in the order.

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 215

• output - For UDF set by the processcomponent.

Field name.RequiredStringplanItem/udf/name

Field value.OptionalStringplanItem/udf/value

Original field value at time of plan creation.OptionalStringplanItem/udf/originalValue

Timestamp when the UDF was last modified.OptionalDateTimeplanItem/udf/lastModified

IDs of the plan items which depends on thecurrent plan item.

0-MStringplanItem/parentID

IDs of the plan items on which the currentplan item depends.

0-MStringplanItem/childID

IDs of the plan items corresponding toSIBLING_PRODUCT_* of the productfulfilled by current plan item.

0-MStringplanItem/siblingID

IDs of the plan items corresponding toDEPENDENT_PRODUCT_* of the productfulfilled by current plan item.

0-MStringplanItem/dependentID

Get Plan Items Messages and Message Codes

The error codes and their respective error messages for the Get Plan Items interface are as follows:

Table 7: Get Plan Items Messages and Message Codes

SituationMessage inResultStatusElement

Code in ResultStatus Element

Message inResponse Header

Message Code inResponse Header

PlanItem is foud anddata mapped in the

SuccessAFF-TDS-0000SuccessAFF-TDS-000

responsesuccessfully.

PlanItem not foundfor planID <planID>

Unexpected Element<planItemID>

AFF-TDS-ORD-0100SuccessAFF-TDS-000

and planItemID<planItemID>.

Some exception isthrown while

Internal ErrorAFF-TDS-ORD-0100Internal ErrorAFF-TDS-9999

processing therequest. It is logged.

Database is notavailable while

Database issuefound. Cannotprocess the request.

AFF-OMS-999999Database issuefound. Cannotprocess the request.

AFF-OMS-999999

processing therequest.

TIBCO® Fulfillment Order Management User's Guide

216 | Data Access Interfaces

Set Plan

Overview

The SetPlan interface can be used by the process components to add a new UDF or update the value of anexisting UDF of plan or any of the containing plan items in the Fulfillment Order Management system.However, it is suggested to use this interface for plan level UDFs only since there is a separate interface forplan items as explained further in this guide.

It is a synchronous request/reply interface on a JMS queue that returns a reply either to the specifiedJMSReplyTo destination on the request message or to the default reply queue if not specified.

If an exception occurs during SetPlan operation, then it is logged into the omsServer log. The details ofthe exception are returned in the response.

Set Plan Request

The request specification is as follows:

QueueQueue orTopic

tibco.aff.tds.plan.requestDestination

The following properties should be passed in the request message header:

DescriptionCardinalityTypeElement

Interface identifier name; MUST be set as SetPlanRequestEvent.RequiredString_nm_

Unique identifier for tracing purposes across function calls.OptionalStringbusinessTransactionID

Internal unique identifier for the plan to retrieve.RequiredStringplanID

Unique identifier for tracing purposes across a single functioncall. This is generally used by the calling application tocorrelate requests and responses.

OptionalStringcorrelationID

If set to true:

The response will be sent on the temporary queue by defaultor on the destination set as JMSReplyTo property in therequest message.

RequiredBooleanrequestReply

If set to false:

The response will be sent on tibco.aff.tds.plan.replyqueue.

If set to true:

All the existing UDFs will be replaced by the UDFs that arepresent in the request.

RequiredBooleanreplace

If set to false:

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 217

The UDFs passed in the request will be merged with theexisting UDFs.

In any of the above case, the uniqueness of a UDF ismaintained on the basis of the 'name' and 'flavor' combinationin the UDF. A UDF having exactly same 'name' and 'flavor'will not be duplicated, if the flag EnableUniqueUDFNames isset to true in OMS configurations. In case of multiple UDFswith exactly same name and flavor in the request, the valuefrom the last encountered UDF will be considered.

The component which has originated this call. E.g. the nameof the process component PC_BUNDLE_PROVIDE.

OptionalStringoriginator

The request message body should contain the XML payload as per the following schema:

Figure 132: Set Plan Request

The following table lists the details of the elements.

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Plan type.RequiredTypePlan

Internal unique identifier for the plan to update.RequiredStringplan/planID

Internal unique identifier for the order relatedto the plan to update.

RequiredStringplan/ordered

External unique identifier for the order relatedto the plan to update.

RequiredStringplan/orderRef

TIBCO® Fulfillment Order Management User's Guide

218 | Data Access Interfaces

0-MTypeplan/udf

Type of the user defined field.OptionalStringplan/udf/type

Flavour of the UDF. Must be set as output.OptionalStringplan/udf/flavour

Field name.RequiredStringplan /udf/name

Field value.RequiredStringplan/udf/value

Plan item type.0-MTypeplan/planItem

Internal unique identifier for the plan item toupdate.

RequiredStringplan/planItem/planItemID

Process component name.OptionalStringplan/planItem/planItemName

UDF type.0-MTypeplan/planItem/udf

Type of the user defined field.OptionalStringplan/planItem/udf/type

Flavour of the UDF. Must be set as output.OptionalStringplan/planItem/udf/flavour

Field name.RequiredStringplan/planItem/udf/name

Field value.RequiredStringplan/planItem/udf/value

If true it completely replaces the plan item,otherwise merges the UDF data.

OptionalAnyreplace

Set Plan Response

The response specification is as follows:

QueueQueue or Topic

temp queue or JMSReplyTo destination or tibco.aff.tds.plan.reply queueDestination

The response message contains the following header properties:

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls. This is used for logging.

OptionalStringbusinessTransactionID

Unique identifier for tracing purposes across asingle function call. This is generally used by

OptionalStringcorrelationID

the calling application to correlate requests andresponses.

Flag indicating if the call was successful.RequiredBooleansuccess

Result message code.RequiredStringmessageCode

Result message.RequiredStringmessage

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 219

Internal unique identifier for the plan specifiedin the request.

RequiredStringplanID

There is no body (payload) associated with the response message.

Set Plan Messages and Message Codes

The error codes and their respective error messages for the Set Plan interface are as follows:

Table 8: Set Plan Messages and Message Codes

SituationMessage inResultStatusElement

Code in ResultStatus Element

Message inResponse Header

Message Code inResponse Header

Plan is found andupdates are donesuccessfully.

Not applicable sincethere is no payloadin SetPlanResponse.

Not applicable sincethere is no payloadin SetPlanResponse.

SuccessAFF-TDS-000

Plan is not found.Exception is logged

Not applicable sincethere is no payloadin SetPlanResponse.

Not applicable sincethere is no payloadin SetPlanResponse.

Plan not found forplanID <planID>

AFF-TDS-PLAN-0100

and message "Plannot found for planID<planID>".

Some exception isthrown while

Not applicable sincethere is no payloadin SetPlanResponse.

Not applicable sincethere is no payloadin SetPlanResponse.

Internal ErrorAFF-TDS-9999

processing therequest. It is logged.

Database is notavailable while

Not applicable sincethere is no payloadin SetPlanResponse.

Not applicable sincethere is no payloadin SetPlanResponse.

Database issuefound. Cannotprocess the request

AFF-OMS-999999

processing therequest.

TIBCO® Fulfillment Order Management User's Guide

220 | Data Access Interfaces

Set Plan Item

Overview

The SetPlanItem interface can be used by the process components to add a new UDF or update the value ofan existing UDF of the plan items in a plan in the Fulfillment Order Management System.

It is a synchronous request/reply interface on a JMS queue that returns a reply either to the specifiedJMSReplyTo destination on the request message or to the default reply queue if not specified.

If an exception occurs during SetPlanItem operation then it is logged into the omsServer log. The details ofthe exception are returned in the response.

Set Plan Item Request

The request specification is as follows:

QueueQueue or Topic

tibco.aff.tds.plan.requestDestination

The following properties should be passed in the request message header:

DescriptionCardinalityTypeElement

Interface identifier name; MUST be set asSetPlanItemRequestEvent.

RequiredString_nm_

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Internal unique identifier for the plan to retrieve.RequiredStringplanID

Unique identifier for tracing purposes across asingle function call. This is generally used by the

OptionalStringcorrelationID

calling application to correlate requests andresponses.

If set to true:

The response will be sent on the temporary queueby default or on the destination set as JMSReplyToproperty in the request message.

RequiredBooleanrequestReply

If set to false:

The response will be sent ontibco.aff.tds.plan.reply queue.

If set to true:

All the existing UDFs will be replaced by the UDFsthat are present in the request.

RequiredBooleanreplace

If set to false:

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 221

The UDFs passed in the request will be mergedwith the existing UDFs.

In any of the earlier mentioned cases, theuniqueness of a UDF is maintained on the basisof the 'name' and 'flavor' combination in the UDF.A UDF having the exact same 'name' and 'flavor'will not get duplicated, if the flagEnableUniqueUDFNames is set to true in OMSconfigurations. In case of multiple UDFs with theexact same name and flavor in the request, thevalue from the last encountered UDF will beconsidered.

Internal unique identifier for the plan item toupdate.

RequiredStringplanItemID

The component which has originated this call. E.g.the name of the process componentPC_BUNDLE_PROVIDE.

OptionalStringoriginator

The request message body should contain the XML payload as per the following schema:

Figure 133: Set Plan Item Request

The following table lists the details of the elements.

TIBCO® Fulfillment Order Management User's Guide

222 | Data Access Interfaces

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes acrossfunction calls.

OptionalStringbusinessTransactionID

Internal unique identifier for the plan to update.RequiredStringplanID

Plan item type. Only UDF Name and Value areupdated. If the UniqueUDFs are enabled for the

RequiredTypeplanItem

engine an update will occur, if disabled the entirecurrent UDF payload will be dropped and replacedwith the new payload.

Internal unique identifier for the plan item to update.RequiredStringplanItem/planItemID

Process component name.OptionalStringplanItem/planItemName

UDF type.0-MTypeplanItem/udf

Type of the user defined field.OptionalStringplanItem/udf/type

Flavour of the UDF. Must be set as output.OptionalStringplanItem/udf/flavour

Field name.RequiredStringplanItem/udf/name

Field value.RequiredStringplanItem/udf/value

If true it completely replaces the plan item, otherwisemerges the UDF data.

OptionalAnyreplace

Set Plan Item Response

The response specification is as follows:

QueueQueue orTopic

temp queue or JMSReplyTo destination or tibco.aff.tds.plan.reply queueDestination

The response message contains the following header properties:

DescriptionCardinalityTypeElement

Unique identifier for tracing purposes across function calls.This is used for logging.

OptionalStringbusinessTransactionID

Unique identifier for tracing purposes across a single functioncall. This is generally used by the calling application tocorrelate requests and responses.

OptionalStringcorrelationID

Flag indicating if the call was successful.RequiredBooleansuccess

Result message code.RequiredStringmessageCode

Result message.RequiredStringmessage

TIBCO® Fulfillment Order Management User's Guide

Data Access Interfaces | 223

Internal unique identifier for the plan specified in the request.RequiredStringplanID

There is no body (payload) associated with the response message.

Set Plan Item Messages and Message Codes

The error codes and their respective error messages for the Set Plan Items interface are as follows:

Table 9: Set Plan Items Messages and Message Codes

SituationMessage inResultStatusElement

Code in ResultStatus Element

Message inResponse Header

Message Code inResponse Header

PlanItem is foundand updates aredone successfully.

Not applicable sincethere is no payloadinSetPlanItemResponse.

Not applicable sincethere is no payloadinSetPlanItemResponse.

SuccessAFF-TDS-000

PlanItem is notfound. Exception is

Not applicable sincethere is no payload

Not applicable sincethere is no payload

Plan Item not foundfor planID <planID>

AFF-TDS-PLAN-0101

logged "Plan IteminSetPlanItemResponse.

inSetPlanItemResponse.

and planItemID<planItemID> not found for planID

<planID> andplanItemID<planItemID>".

Some exception isthrown while

Not applicable sincethere is no payload

Not applicable sincethere is no payload

Internal ErrorAFF-TDS-9999

processing therequest. It is logged.

inSetPlanItemResponse.

inSetPlanItemResponse.

Database is notavailable while

Not applicable sincethere is no payload

Not applicable sincethere is no payload

Database issuefound. Cannotprocess the request

AFF-OMS-999999

processing therequest.

inSetPlanItemResponse.

inSetPlanItemResponse.

TIBCO® Fulfillment Order Management User's Guide

224 | Data Access Interfaces

Chapter

7Best Practices for Fulfillment Order Management

This section covers the best practices that can serve as guidelines for building a fulfillment solution using FOM.

Topics

• Process Component Design Guidelines• BusinessWorks - Asynchronous Process Component• BusinessWorks - Synchronous Process Component• BusinessEvents - Process Component• Exception Handling Guidelines

TIBCO® Fulfillment Order Management User's Guide

Process Component Design Guidelines

This topic talks about different guidelines that can be followed for designing and developing the processcomponents.

Process Component Technology Selection

Process Components may be implemented in any JMS-enabled technology that conforms to the interfacespecification in the product documentation.

Generally speaking Process Components can be classified using a combination of the duration of the ProcessComponent lifecycle as well as a description of the statefulness.

Process Component duration defines how long it takes to execute all tasks in the plan item. There is noabsolute number that defines a short vs. long-lived Process Component. Instead the duration defines whetheror not the task can be amended in-flight:• Short-lived – an in-flight process cannot be amended. When suspended by Orchestrator the process runs

to completion and returns a complete response.• Long-lived – an in-flight process can be amended. When suspended by Orchestrator the process may

either run to completion and return a complete response, or it may suspend execution and return a suspendresponse. If a suspend response is returned, it must handle an activate request from Orchestrator later toresume execution.

• Process Component statefulness defines whether or not a Process Component needs to persist stateinternally during the life of an invocation. This does not include storing data using OMS data serviceinterfaces, which is available for all Process Components. Instead the determining requirement is whetheror not state is stored directly within the Process Component:– Stateless – short-lived process component that is invoked and does not require state persistence.– Stateful – short or long-lived process component that is invoked and does require state persistence.

The choice of stateless or stateful Process Component is not necessarily determined by whether the backendsystems being invoked are synchronous or asynchronous. Asynchronous backend system invocation is acommon use case for stateful Process Component. However it may be possible to pass a correlationID throughthe backend system that allows the use of a stateless Process Component. Consequently a Process Componentis defined as a logical entity that provides a given set of functionality. It does not necessarily translate directlyinto a single physical process that is invoked and runs to completion.

If a Process Component requires manual interaction then it will in almost all cases be defined as stateful.

Technology Recommendations based on Requirements

Some technology recommendations for a given set of conditions are as follows:

TechnologyRequirement

BusinessWorksShort lived process that does one or manysynchronous invocations to back-end systems. BusinessEvents

BusinessWorksShort-lived process that does one or manysynchronous and/or asynchronous invocations to BusinessEventsback-end systems. The back-end system accepts acorrelation ID that comprised of the combination oforderRef and planItemID.

TIBCO® Fulfillment Order Management User's Guide

226 | Best Practices for Fulfillment Order Management

TechnologyRequirement

BusinessEventsShort-lived process that does one or manysynchronous and/or asynchronous invocations toback-end systems. The back-end system accepts acorrelation ID but cannot be comprised of orderRefand planItemID.

BusinessEventsLong-lived process that does one or manysynchronous and/or asynchronous invocations toback-end systems with no manual interaction.

iProcessLong-lived process that does one or manysynchronous and/or asynchronous invocations toback-end systems with at least one manual interaction.

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 227

BusinessWorks - Asynchronous Process Component

This section provides an example on how to approach the implementation of a Business Works processcomponent that is “asynchronous”, in the sense that the back-end call is asynchronous in nature. After a callis made to a backend system, the sending process terminates, after passing in a correlation ID that the receivingprocess can use to retrieve any context information needed to continue with the processing required. In thisexample, only one back-end call is made from the process component.

Use Case Scenario

A telecommunication company wants to provide a new service for new customers and between all the UseCases identified there is the Use Case: UserAccount.

This Use Case creates a new user account by calling a backend application and passing it all the informationrelated to the user. The backend application has an asynchronous interface and after receiving a request willsend a reply back to the caller.

Let’s assume that the Use Case has got:• A Functional Product (FP) called: UserAccount• A Technical Product (TP) called: Account, which is related to UserAccount via a Product-Comprised-Of

relationship. To perform an action on the TP Account, an asynchronous backend call is required.

Below there is an Activity Diagram which describes the steps to be performed to create TP Account.

TIBCO® Fulfillment Order Management User's Guide

228 | Best Practices for Fulfillment Order Management

Figure 134: Process Component Example - Use Case Activity Diagram

Account Implementation

As described in the previous section, there is one FP UserAccount and one TP Account.

Once the order for the Product UserAccount has been submitted to OMS, AOPD will generate the PLAN andthe Orchestrator will send a PlanItemExecutionRequest Event with the plan item to be executed based onthe sequence defined in Fulfillment Catalog when the product has been modelled.

The PlanItemExecuteRequest message is received in a main BW process as shown in Figure 134: ProcessComponent Example - Use Case Activity Diagram on page 229 in the process component implementation.This process sends a message on a queue which is internal to process component implementation.

Figure 135: Process Component Example: Receive PlanItemExecutionRequest from Orchestrator

Most of the example diagrams for the BW based process components are showing BE Send Event andBE Receive Event pallets for interaction with Orchestrator. This was possible with the 1.2 version of

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 229

TIBCO ActiveFulfillment due to the availability of the BE event references in Orchestrator, exposedthrough a project library. However from TIBCO FOM 2.0.x version onwards, the project library usablein the Designer projects couldn't have the BE event references from Orchestrator. Therefore BW basedprocess components must use the corresponding JMS based pallets such as JMS Queue Receiver andJMS Queue Sender in order to interact with the Orchestrator by exchanging the requiredrequest/response messages.

Figure 136: Process Component Example: Send Backend Request

The process in Figure 136: Process Component Example: Send Backend Request on page 230 receives themessage from the internal queue and calls the specific BW process that implements the actual processcomponent as mentioned in Figure 137: Process Component Example: Backend application call on page 230.

As mentioned in the previous section, the backend interface is asynchronous so when the Process Componentsends a request to the backend application, it also has to send a CorrelationID which needs to be returnedwith the response from the backend application in order to correlate it with the request. In this example it isassumed that the Backend is capable of doing this.

This can be observed in the Figure 137: Process Component Example: Backend application call on page 230that represents the “Create Account” Process Component which makes a call to the backend application:

Figure 137: Process Component Example: Backend application call

In the Figure 137: Process Component Example: Backend application call on page 230 it is possible to noticethat:1. The CorrelationID is passed in the call of the CallBackEndApplication.2. BackEndApplicationName is: “UserAccount”.3. Action is “create”.

Regarding which CorrelationID to use, one possibility is to use a concatenation of PlanID-PlanItemID. OrderRefor Order ID could also be used instead of PlanID.

PlanID and PlanItemID can be used to set a UDF using OMS data access interfaces when the ProcessComponent sends the request to the backend application and this UDF could either contain:

TIBCO® Fulfillment Order Management User's Guide

230 | Best Practices for Fulfillment Order Management

1. A BW process name which will deal with the response.2. A unique queue name which is used to send a message into it in order to trigger the process that will deal

with the response. This means that each BW process that consumes the reply from the backend applicationhas to have a unique queue name.

Let’s assume that there will be one BW process that receives all the replies from the backend application andit will work as a dispatcher of the messages amongst other BW processes that are the consumers of the repliescoming from the backend system.

When the backend application replies it will insert the CorrelationID in the response which can be used toretrieve information using OMS data access interfaces and the particular UDF which contains the consumerof the response.

Here it is assumed that TP sends a message to a backend application in a queue and receives the reply bylistening to another queue.

Figure 138: Process Component Example: BW process receiver

In Figure 138: Process Component Example: BW process receiver on page 231 above the JMS Queue Receiveractivity receives the response from the backend application; it is the BW process that receives all the repliesfrom the backend system. The “GetPlanID” mapper activity parses the id parameter coming from the backendapplication and gets the planID and planItemID.

At the end of the process there is a call to a BW process: “ConsumeResponse” which dispatches the responseand it is possible to pass the planID and planItemID to it which will be used to retrieve, using the OMS dataaccess interfaces, the UDF we set in the request containing the information regarding which BW process hasto be called or to which queue it is necessary to send the reply from the backend application in order toelaborate the response.

The Figure 139: Process Component Example: Set UDF for response on page 232 shows how to store the UDFby using the "setPlanItem" JMS data access interface of OMS.

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 231

Figure 139: Process Component Example: Set UDF for response

In the Figure 139: Process Component Example: Set UDF for response on page 232 it is possible to observethat before calling the backend application (CallBackEndApplication), a UDF called “callBackQueue” hasbeen set with a queue name: “rfs.UserAccount.Account.response”. A BW process as seen in the Figure 141:Process Component Example: Start Specific BW Technical Product Consumer Process on page 233 will listenon this queue and will process the message sent by the “ConsumeResponse” BW process as seen in the Figure140: Process Component Example: BW ConsumeResponse Process on page 232.

Alternatively, as mentioned before, it was also possible to set the UDF with a BW Process name that wouldhave dealt with the response; in this way the main BW process, which receives all the responses, would haveredirected it to the BW process contained in the UDF by performing a dynamic call to it.

To summarise, these are the steps to be performed by the main BW process that receives all the responsesfrom the backend application:1. Upon the receiving of a response from the backend application, retrieve the planID/planItemID from it.2. Use "getPlanItem" OMS data access interface by using planID/planItemID to retrieve the UDF containing

the BW process that will consume the response.3. Make a dynamic call to the BW process contained in the UDF and pass the replies obtained from the

backend application as an input to it.4. If the UDF was set as a queue name, then send a message to the queue specified in the UDF. A BW process

as seen in the Figure 141: Process Component Example: Start Specific BW Technical Product ConsumerProcess on page 233 will listen on that queue and process the response received from the back-endapplication.

Figure 140: Process Component Example: BW ConsumeResponse Process

TIBCO® Fulfillment Order Management User's Guide

232 | Best Practices for Fulfillment Order Management

Figure 141: Process Component Example: Start Specific BW Technical Product Consumer Process

From the Figure 141: Process Component Example: Start Specific BW Technical Product Consumer Processon page 233 it is possible to see that if the resultCode coming from the backend application response is notequal to zero, then a PlanItemExecuteResponse with complete set to true and success set to false is sent backto orchestrator; otherwise the ImplementConsumer BW process is called and it will consume the responsefrom the backend application and a successful PlanItemExecuteResponse is sent back to Orchestrator.

Figure 142: Process Component Example: Example of BW Process Component Consumer

When the TP has been executed and the PlanItemExecutionResponse with complete and success set to truesent back to orchestrator, this will send the PlanItemExecutionRequest for the FP and the Figure 143: ProcessComponent Example: FP Process Component on page 233 is an example of the BW process that manage therequest for the FP. The FP process component does not make any backend calls,so is simpler than the processcomponent for the TP. There is always a call to an Implementation BW process that consume the request, itreturns to the process caller and sends a successful PlanItemExecuteResponse back to the Orchestrator.

Figure 143: Process Component Example: FP Process Component

Exception Handling Component

Having a look at the Activity Diagram shown in the Figure 134: Process Component Example - Use CaseActivity Diagram on page 229 it is possible to notice that when a request is submitted to the backend application,if the error code is equal to zero then the successful path flow is followed (ex: update a variable state with“Submitted”) whereas if the result code is different from zero, it is possible to have a Retry/Continue orRollback scenario.

In this section it is assumed that the Process Component sends/receives a message to/from a queue tocommunicate with a backend application.

When the backend application replies with an error code, the Process Component sends aPlanItemExecutionResponse Event to the Orchestrator with: completed flag set to “true”, success and cancelledset to “false”.

Here it is necessary to analyse the different kinds of Exception Handling one by one:1. Retry with Edit

The Process Component made a call to the backend application which replies with an error. Orchestratorwill then communicate with the Exception Handler (see Exception Handling Guidelines on page 239 for

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 233

more information) to see what the next action is. The Exception Handler has determined that the requiredaction is that the data on the order needs to be edited, and the plan item step retried. The Exception Handlercommunicates with Orchestrator and asks it to resend the planItem which failed. Orchestrator will resendanother PlanItemExecutionRequest for that Process Component.

2. Continue

In this case, the Exception handler returns to Orchestrator a Resume response. On receipt of the resume,Orchestrator will send an activate message to the Process Component, with a flag (<resumeExecution>)to indicate that processing should resume. In this case the Process Component executes the next step thatwould have normally executed in a success case scenario, for example: update the installed base. TheFigure 144: Process Component Example: Activate Event on page 234 shows a BW process that implementsthe Continue scenario:

Figure 144: Process Component Example: Activate Event

When the Process Component receives the Activate Event(PlanItemActivateRequest Event) message andthe action is not “CANCEL” it means that it has to Resume and carry on with the next step which in theFigure 144: Process Component Example: Activate Event on page 234 is called the BW process that representthe continue step.

3. Rollback

In case of Rollback, the following steps will be executed:– A Cancel Order is sent to OMS by the Exception Handler.– Orchestrator sends a PlanItemSuspendRequestEvent to the Process Component as shown in the Figure

145: Process Component Example: Suspend Event on page 234. The suspend event is sent because aplan in execution state needs to go into suspend state before being compensated.

– The Process Component replies with a PlanItemSuspendResponseEvent and sets success and completedflags to “true”.

– Cancel order is treated as a special case of amendment. An updated plan is created by AOPD to cancelall the existing plan items. Compensation plan items that are required against some of the existingplan items are also added in the amended plan so as to actually rollback the tasks there were done bythe existing plan items.

– Once the amendment plan is received by the Orchestrator from AOPD, the Orchestrator will sendPlanItemActivateRequest to all the suspended plan items, for canceling them, by passing the<cancelWithNoRollback> flag.

– Once the activated plan items are successfully cancelled, the corresponding compensating plan item(COMP) that were newly added in the amendment plan, will be executed so as to rollback the tasksthat were done by the original plan items.

Figure 145: Process Component Example: Suspend Event

TIBCO® Fulfillment Order Management User's Guide

234 | Best Practices for Fulfillment Order Management

BusinessWorks - Synchronous Process Component

If the backend interface is synchronous, it is possible to implement the process component in a much simplerway. Of course, be aware of the blocking nature of synchronous calls and the impact this can have onperformance.

Figure 146: Process Component Example: Simple Synchronous BW component

In the Figure 146: Process Component Example: Simple Synchronous BW component on page 235 it can beseen that a queue requester activity is used to implement the synchronous call to the back-end applicationand once the response is received from it, a PlanItemExecuteResponse will be sent to Orchestrator based onthe resultCode. If the resultCode is equal to zero, it sends a PlanItemExecuteResponse with success andcompleted equal to “true” otherwise it sends a PlanItemExecuteResponse with completed set to “true” andsuccess set to “false”. This will trigger the Exception Handler process as described above.

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 235

BusinessEvents - Process Component

In case of a BE Process Component it is necessary to create a Concept with a State Machine which will representthe process component lifecycle.

Figure 147: Process Component Life Cycle

The concept can be created in a rule that fires on receiving PlanItemExecutionRequest event from Orchestratorto start the Process Component.

This is a good solution in case in the project there are only BE Process Components. In case there are BW andBE Process Components then the rule has to fire only when the Process Component type is BE. To implementthis, it is possible to create another channel linked to the PlanItemExecutionRequest Event having a selectorsuch as: processComponentType = 'BE'. In this way the channel will only pick up PlanItemExecutionRequestscoming from the Orchestrator and having BE as processComponentType.

The Figure 148: planItemExecuteRequest (Destination) on page 237 shows how to set the Selector for a BEChannel:

TIBCO® Fulfillment Order Management User's Guide

236 | Best Practices for Fulfillment Order Management

Figure 148: planItemExecuteRequest (Destination)

In this case then, to create the BE Concept when the Orchestrator sends the PlanItemExecutionRequest Eventfor a certain PlanFragment, it is possible to create a rule function having in the declaration thePlanItemExecutionRequest Event and in the body the code to create the concept that represents the ProcessComponent.

In the Figure 149: Arguments for PlanItemExecuteRequestEvent on page 237 there is the Argument of theRule Function that creates the BE Concept when the PlanItemExecuteRequestEvent comes:

Figure 149: Arguments for PlanItemExecuteRequestEvent

In the Figure 150: Rule Function Code on page 237 there is the body of the Rule Function with the code examplethat checks first if the Concept that needs to be created already exists and if not, it creates the Concept:

Figure 150: Rule Function Code

Once that the Concept has been created, it is also necessary to send the PlanItemExecuteResponseEvent backto the Orchestrator. This can be done in any state of the State Machine based on the logic of the implementationor alternatively at the END state.

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 237

In the Figure 151: Edit Body: StateMachine_End_entryAction on page 238 there is the code example that showshow to create the PlanItemExecuteResponseEvent and how to send it:

Figure 151: Edit Body: StateMachine_End_entryAction

TIBCO® Fulfillment Order Management User's Guide

238 | Best Practices for Fulfillment Order Management

Exception Handling Guidelines

Exception Handling Guidelines provides information about guidelines that can be followed for handling theexceptional conditions in process components.

General Approach

FOM does not include any out-of-the-box approach for error handling. The product architecture does accountfor exception handlers, and provides the necessary hooks, where it can be integrated with an existing exceptionor fallout management system, or to which a custom solution can be connected.

The product capabilities for supporting error handling are fully described in the product documentation,and it is assumed that the reader is familiar with that document. The basics will not be covered here.

PIF Handler or no PIF Handler

A key question is whether to handle exceptions within the process component itself, or whether to manageexception handling via Orchestrator and the Plan Item Failed (PIF) handler. In the first case, processcomponents must only return a success result to Orchestrator, and no PIF handler is required.

In the second case, it is necessary to develop a PIF handler, that receives PlanItemFailedRequest from theOrchestrator for direction on how to proceed once an error is encountered. The PIF handler must respond toOrchestrator telling it whether to Retry the plan item, or Continue (that is, mark the plan item as completedand continue with the plan).

A consideration here is the type of process component. If a process component makes use of a workflowengine for its implementation, which already includes manual tasks and GUI interaction, it would makesense for errors in the flow to be managed within the workflow engine, rather than have them passed backto Orchestrator. If the process component is BW or BE, the PIF handler might be a better option.

Functional Exception against Technical Exception

Any consideration of exception handling should consider the different types of exception that can occur,which typically fall into two broad categories, Functional exceptions, and Technical exceptions. For thepurposes of this discussion, we define these as follows:• A Functional Exception occurs when a back-end system returns an error code to the process component,

indicating a problem with the request. Functional exceptions always occur in the context of a processcomponent. An example could be a request to allocate a phone number that is already in use. Receivinga Functional Exception is expected to occur under under normal circumstances, and the system is builtto handle these events.

• A Technical Exception occurs when something goes wrong, so that the system is not designed to handleunder normal circumstances. They can occur in process components and also FOM components such asOrchestrator, OMS, OCV etc. They are typically caused by conditions in the external environment, suchas running out of memory, failure in EMS, hardware failure etc. but can also be caused by defects.

Different strategies may be considered for each of these types. For instance, as Functional Exceptions occurwithin the context of a process component, and would typically require an operator to review and decide onremedial action, it makes sense for these to be handled via the Orchestrator and a PIF handler, which mightdefer to an external GUI for a resolution.

Technical exception handling is more difficult, as they can be caused by almost anything. In this case, evenif a Technical exception occurs in a plan item, it might make more sense to simply log it and stop executionof the plan item.

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 239

Example Approach

This topic describes an approach for implementing exception handling, where order fallout is managedexternally to the FOM implementation. This is a good approach where the customer site has an existing orderfallout management system, providing GUI screens etc. whose functionality can be leveraged. In the rest ofthis topic we will refer to this external error handling system as Exception Management, or EM. Please notethis is an example only, and may not be applicable for your particular circumstance.

In this case, Functional exceptions are managed via the PIF handler, and Technical exceptions via a separatemechanism.

For Functional exceptions the requirements are to forward all to Exception Management, for an operator toanalyse. The possible resolutions are:• Retry the Plan Item step, with the possibility to edit input values for the downstream call that failed. Note

this is different to retrying the plan item from the beginning. Some process components could internallybe orchestrating multiple steps.

• Continue the Plan Item, with the possibility to edit output values from the downstream call that failed(note this may not be quite the same as the Complete PIF handler response, which will instruct Orchestratorto complete the plan item. There may be activity that we require the process component to complete afterthe downstream call but before it completes).

• Rollback the entire order, performing compensating actions if required.

The architectural approach here is to define a clear separation of concerns, between what FOM will do, andwhat EM will do. The following diagram shows the approach in the case of Functional exceptions. Also, thedata access GetPlanItem and SetPlanItem calls are used to support the functionality of editing input/outputvalues.

Figure 152: Example Functional Exception Handling Overview Architecture

The Figure 153: Example Functional Exception Handling FOM Components on page 241 shows an approachfor how this could be implemented within FOM:

TIBCO® Fulfillment Order Management User's Guide

240 | Best Practices for Fulfillment Order Management

Figure 153: Example Functional Exception Handling FOM Components

Plan Item Failed Handler

In this example, the Plan Item Failed (PIF) Hander is built as a pass-through component. It performs thefollowing:• On receipt of a PlanItemFailedRequest message from Orchestrator, publishes a message (to EM).• On receipt of a “Retry” or “Continue” resolution type from EM, creates a PlanItemFailedResponse message

and sends to Orchestrator with an appropriate flag that is either retry, resume, or complete.• On receipt of a “Rollback” resolution type from EM, send a message to OMS to cancel the entire order.

No PlanItemFailedResponse message is sent to Orchestrator in this case.

Process Component Considerations

When mapping the selected resolution type to a PlanItemFailedResponse to send to Orchestrator, there aresome considerations regarding this and the nature of the process component implementation, i.e. whether itexecutes multiple steps, or is atomic.

For process components that implement multiple steps (e.g. a BE process component):• A Retry action means the entire process component will be re-executed. If what is required is just the

current step to be retried, a Resume action should be specified, not retry.• A Complete action means the process component will not be invoked again in any way, and the plan item

will simply be marked as complete.• A distinction needs to be made between a Resume where the current step needs to be retried, or skipped.

There is no way to do this on the PlanItemFailedResponse message, so this needs to be managed anotherway, e.g. by setting a UDF on the plan item to indicate which is required.

Pre Qualification Failed Handler

Like the PIF handler, there is no default implementation of the PQF handler provided with the product.

Be aware that the Pre-qualification failed handler deals with errors raised not only in Feasibility, but also,AOPD. Even if in your architecture you don’t have a Feasibility step, you will always have AOPD, and if

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 241

AOPD raises exceptions, Orchestrator will publish an event to the PQF handler and wait for a response. Ifthere is no PQF handler implemented, nothing further will happen for that order and it will be “stuck”.

Even if AOPD exceptions are expected to be rare for your application (i.e. you validate the order thoroughlyprior to AOPD), consider at the very least, implementing monitoring on the PQF request queue, so thatoperations will be aware that AOPD has failed for an order, and some action needs to be taken to move theorder on.

You may want to consider making the PQF handler “just another” source of Technical Exceptions. In thisway, a framework for dealing with automating Technical Exception handling, could be used to also deal withPQF requests. This is the approach that is described in the next section.

Technical Exception Handling

For Technical exception handling, it is difficult to define a pattern that always can apply, given the diverserange of possible exceptions that can be raised. Such exceptions can be raised from anywhere – FOMcomponents, process components, and any other code that may be developed as part of a total fulfilmentsolution.

It is of course always good general software engineering practice to build components as resilient as possibleto errors. It may make sense, depending on the context, to build in mechanisms such as retry, when eventssuch as timeouts occur. Of course, this needs to be weighed up against the additional complexity this introducesinto the solution, and needs to consider the idempotency of interactions. Complex, built-in “self-healing”type mechanisms themselves increase the risk of coding defects, increase the complexity of testing, and willnever be able to catch all types of errors.

The underlying principle here is, as with Functional exceptions, Technical exceptions will require manualinspection to determine what to do. The default approach is that all technical exceptions are also dealt withmanually. This can mean messages being manually copied from one queue to another, database entries beingmanually edited, etc.

Nevertheless, it is highly desirable, in some common circumstances, for a fulfilment system to be able toresolve technical exceptions in an automated way. No system can be built to automatically resolve allexceptions, however one approach is to build a mechanism that can support incremental addition of automatedtechnical exception resolutions, as the system evolves and experience is gained into the types of exceptionsthat can occur, and how best to deal with them. This section outlines a possible approach to building such amechanism.

As with the handling of Functional exceptions, it is important to define a clear architectural separation betweenthe fulfilment system and the system that determines what to do with exceptions. Again, we term this bodyException Management, see Figure 154: Technical Exception Handling Architecture Overview on page 243.

To simplify the interface, we define here a single “Resolve Exception” service, which is used to resolve allTechnical exceptions. It will expect an argument “Resolution Type”, which is a string that will define whatspecific resolution behaviour is required.

It is good practice when building custom components of a fulfilment solution, such as the process components,any database adapters, enrichment processes etc. to ensure Technical exceptions are caught and logged in aconsistent way. We define a single “Publish Technical Exception” service for FOM to use when publishinga Technical exception. This same service would be invoked regardless of the source of the Technical exception,which can be custom code, FOM internal components, or even a PQF error.

When publishing an exception to EM, FOM will need to publish along with the exception, all the informationthat it would need to handle the resolution.

TIBCO® Fulfillment Order Management User's Guide

242 | Best Practices for Fulfillment Order Management

Figure 154:Technical Exception Handling Architecture Overview

Types of Technical Exception

We identify the following types of technical exceptions as candidates for automation via this approach. Theseare of course not the only types of Technical exception that can occur.1. Pre FOM submit (i.e. an error that happens during any order pre-processing or enrichment)

a. Resubmit order only action possible – but first state needs to be cleaned from any database tables etc.b. Relatively easy to automate.

2. Pre-qualification Failed Handlera. If an error occurs in plan development (or Feasibility, if present).

3. Process Componenta. Most technical exceptions likely to be this type.b. The Process Component could potentially be restarted (retried), continued or completed, depending

on how far it has progressed.

Fulfillment Order Management Components for Technical Exception Handling

The Figure 155: Components involved in Technical Exception Handling on page 244 outlines the componentswithin FOM that would be involved in handling technical exceptions. Note that the other components notdirectly involved in the solution for technical exception handling are not shown.

It should be noted however that any component within the FOM can generate a technical exception. Thisincludes those shown below, as well as the FOM core components, such as Orchestrator, data access interfaces,and AOPD.

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 243

Figure 155: Components involved in Technical Exception Handling

The following outlines the required behaviour of the components that need to be built, in the context ofTechnical Exception Handling:

Process Component

Technical exceptions occurring during the execution of process components will log a technical exceptiondirectly to Exception Management, via the Technical Exception Logger, and stop execution. Orchestrator willnot be notified when a Technical exception occurs, and will consider the Process Component to be in“Execution” state. The process component can be retried or continued by the Technical Exception handler,or the Technical Exception handler can notify Orchestrator directly that the Process Component is complete.

Feasibility

The Feasibility step is invoked by Orchestrator after it has received and stored the order, but before it invokesAOPD to get the plan. Like AOPD, the feasibility component can return an error to Orchestrator, if Feasibilityfails. Also like AOPD, in the context of the example, a Feasibility error is regarded as a Technical exception,as Feasibility should always pass under normal circumstances (this may not typically be true though, forinstance if order validation is performed at Feasibility).

Technical Exception Logger

This component publishes Technical exceptions to Exception Management. It should capture all Technicalexceptions generated from custom components, and publish them in a standard way to EM. A standard setof exception fields should be published, which should include order ids (if available), the component andservice that generated the error, and an error code. The message being processed at that time may also belogged. The key requirement is that there should be enough information logged to enable EM to choose aresolution type to be applied to resolve the exception, and enough information to be passed back to theTechnical Exception Handler for it to be able to resolve the exception.

Pre Qualification Failed (PQF) Handler

Its role is to receive notifications that Orchestrator publishes when it receives an error from Feasibility orAOPD, and publish them to Exception Management.

TIBCO® Fulfillment Order Management User's Guide

244 | Best Practices for Fulfillment Order Management

Technical Exception Handler

Its role is to expose the FOM service for resolving Technical Exceptions for Exception Management to call,and to implement the logic for performing the resolution. This may involve sending messages to a processcomponent, or to perform some custom action (such as clean up a database table and resubmit an order). Itmay also communicate directly with Orchestrator, for instance to send a PQF Response message.

The number of resolution types this component can expose, may grow over time as new resolutions areadded.

The Figure 156: Process Component Technical Exception Services Overview on page 245 outlines at a highlevel, how the Retry, Continue and Complete services could potentially be implemented.

Figure 156: Process Component Technical Exception Services Overview

TIBCO® Fulfillment Order Management User's Guide

Best Practices for Fulfillment Order Management | 245

Appendix

ASchema References

Topics

• Plan Item• Result Status• Message• Order Request

TIBCO® Fulfillment Order Management User's Guide

Plan Item

Figure 157: Plan Item

DescriptionCardinalityTypeElement

Unique identifier for the plan item within the planto be executed.

RequiredStringplanItem/planItemID

Description for the plan item to be executed.OptionalStringplanItem/description

Unique identifier for the Process Component to beexecuted.

RequiredStringplanItem/processComponentID

Process component name for the Process Componentto be executed.

RequiredStringplanItem/processComponentName

Process component version for the ProcessComponent to be executed.

OptionalStringplanItem/processComponentVersion

Process component type for the Process Componentto be executed.

OptionalStringplanItem/processComponentType

TIBCO® Fulfillment Order Management User's Guide

248 | Schema References

Class of processComponentType.OptionalStringplanItem/processComponentRecordType

Order line type for the plan item to be executed.1-MTypeplanItem/orderLine

Order line number for the order line of the plan itemto be executed.

RequiredStringplanItem/orderLine/orderLineNumber

Product ID for the order line of the plan item to beexecuted.

RequiredStringplanItem/orderLine/productID

Product version for the order line of the plan itemto be executed.

OptionalStringplanItem/orderLine/productVersion

Order line action for the order line of the plan itemto be executed.

RequiredStringplanItem/orderLine/action

Order line action mode for the order line of the planitem to be executed.

OptionalStringplanItem/orderLine/actionMode

Quantity for the order line of the plan item to beexecuted.

RequiredLongplanItem/orderLine/quantity

Unit of measure for the order line of the plan itemto be executed.

RequiredStringplanItem/orderLine/uom

Subscriber ID for the order line of the plan item tobe executed.

OptionalStringplanItem/orderLine/subscriberID

Link ID for the order line of the plan item to beexecuted.

OptionalStringplanItem/orderLine/linkID

Inventory ID for the order line of the plan item tobe executed.

OptionalStringplanItem/orderLine/inventoryID

End of line flag for the order line of the plan item tobe executed. This indicates that this plan item is thefinal plan item for the order line.

RequiredBooleanplanItem/orderLine/eol

Plan item action for the plan item to be executed.RequiredStringplanItem/action

Plan item action mode for the plan item to beexecuted.

OptionalStringplanItem/actionMode

TIBCO® Fulfillment Order Management User's Guide

Schema References | 249

Result Status

Figure 158: Result Status

DescriptionCardinalityTypeElement

Engine deployment that returned this result.RequiredStringdeployment

Service name that returned this resultRequiredStringservice

Operation within the service that returned this result.RequiredStringoperation

Component within the operation and service that returned thisresult.

OptionalStringcomponent

Severity result. Valid values are:RequiredStringseverity1. S - Success2. W - Warning3. E - Error

Message code for this result.RequiredStringcode

Message details for this result.RequiredStringmessage

TIBCO® Fulfillment Order Management User's Guide

250 | Schema References

Message

Figure 159: Message

DescriptionCardinalityTypeElement

Order line number that this message refers to.OptionalString,lineNumber

Message type. Valid values are:RequiredStringtype1. Information2. Warning3. Error

Message code for this message.RequiredStringCode

Message text for this message.RequiredStringDescription

UDF type.0-MTypeudf

User defined field name.RequiredStringudf/name

User defined field value.RequiredStringudf/value

TIBCO® Fulfillment Order Management User's Guide

Schema References | 251

Order Request

Figure 160: Order Request

DescriptionCardinalityTypeElement

External unique identifier for an order.RequiredStringorderRef

Order request header type. Refer to the Order Request Headerdefinition for details.

RequiredTypeheader

Order request line type. Refer to the Order Request Line definition fordetails.

1-MTypeline

Extension attributes for user-defined fields.OptionalTypeextension

Any dataRequiredAnyextension/#any

TIBCO® Fulfillment Order Management User's Guide

252 | Schema References

Appendix

BSamples

Topics

• Sample Order XML• Sample Plan Item XML• Sample XPATHs

TIBCO® Fulfillment Order Management User's Guide

Sample Order XML

The sample order XML is as follows:

<?xml version="1.0" encoding="UTF-8"?><Order Id="544"> <orderID>8ae1f9ac3898656f0138986ae70c0001</orderID> <sessionID>CORRELATION-3baee8b0-b483-47aa-89b2-bf7b03d0c41f</sessionID> <orderlines Id="545"> <lineID>1</lineID> <productID>CFS TV</productID> <action>PROVIDE</action> <quantity>1.0</quantity> <requiredByDate>2011-04-30T23:50:00+05:30</requiredByDate> <LineUsed>false</LineUsed> <OrderlinesUDF Id="546"> <name>OrderRef</name> <value>OrderRefID</value> <flavor>input</flavor> </OrderlinesUDF> </orderlines> <orderlines Id="547"> <lineID>2</lineID> <productID>CFS Live Box</productID> <action>PROVIDE</action> <quantity>1.0</quantity> <requiredByDate>2011-04-30T23:50:00+05:30</requiredByDate> <LineUsed>false</LineUsed> <OrderlinesUDF Id="548"> <name>OrderRef</name> <value>OrderRefID</value> <flavor>input</flavor> </OrderlinesUDF> </orderlines> <orderlines Id="549"> <lineID>3</lineID> <productID>CFS VOIP</productID> <action>PROVIDE</action> <quantity>1.0</quantity> <requiredByDate>2011-04-30T23:50:00+05:30</requiredByDate> <LineUsed>false</LineUsed> <OrderlinesUDF Id="550"> <name>OrderRef</name> <value>OrderRefID</value> <flavor>input</flavor> </OrderlinesUDF> </orderlines> <status>NewOrder</status> <currentTime>2012-07-18T10:19:03+05:30</currentTime> <TineDelay>0</TineDelay> <customerref>Apple</customerref> <OrderHeaderUDF Id="551"> <name>Company</name> <value>Orange</value> <flavor>input</flavor> </OrderHeaderUDF> <Originator>Orchestrator</Originator> <OrderRef>OrderRefID</OrderRef> <businessTransactionID>a7eb1e1de1fa45c993f65589dba70648</businessTransactionID></Order>

TIBCO® Fulfillment Order Management User's Guide

254 | Samples

Sample Plan Item XML

The sample plan item is as follows:

<?xml version="1.0" encoding="UTF-8"?><PlanItem Id="2169"> <planID>PF1</planID> <parentID>CORRELATION-1b1260e6-9cdd-4903-a184-d473aa11b622</parentID> <lineID>2</lineID> <dependentOn>PF10.7747556</dependentOn> <planDesc> PROVIDE</planDesc> <planItemID>PF10.8786092</planItemID> <EOL>N</EOL> <TimeDelay>0</TimeDelay> <status>addDependency</status> <singleUse>false</singleUse> <sequence>0</sequence> <sequenceName>leaf</sequenceName> <action>PROVIDE</action> <productID>GSMDataService</productID> <itemMark4Del>false</itemMark4Del> <mustComplete>true</mustComplete> <affinityType>ConditionalAffinity</affinityType> <affintyPlanID>PF1</affintyPlanID> <affintyPlanDesc> AFFINITY PROVIDE</affintyPlanDesc> <udfs Id="2170"> <name>TASKID</name> <value>PF10.8786092</value> <flavor>config</flavor> </udfs> <udfs Id="2172"> <name>PRODUCTID</name> <value>GSMDataService</value> <flavor>config</flavor> </udfs> <udfs Id="2173"> <name>RECORD_TYPE</name> <value>SERVICE</value> <flavor>config</flavor> </udfs> <udfs Id="2174"> <name>MSISDN</name> <value>123</value> <flavor>input</flavor> </udfs> <Ancestors>PF10.7747556</Ancestors> <cancelUsed>false</cancelUsed> <M_EP_UDFS Id="2171"> <name>M_EP_UDFS</name> <value>PF10.8786092</value> </M_EP_UDFS> <pI_Used>false</pI_Used> <isLeaf>false</isLeaf> <counter>0</counter> <LinkID>1</LinkID>

<affinityCorrelation>$var/PlanItem[productID='GSMLine']/udfs[name='MSISDN']/value/text()</affinityCorrelation>

<affinityParentGroup>false</affinityParentGroup> <affinityActionGroup>false</affinityActionGroup> <isDynamic>false</isDynamic></PlanItem>

TIBCO® Fulfillment Order Management User's Guide

Samples | 255

Sample XPATHs• <ns0:affinityCondition>exists($var/Order/OrderHeaderUDF[name="SubscriberProduct"and

value="Product BB Network Access"])</ns0:affinityCondition>

• <ns0:affinityCorrelation>exists($var/Order/OrderHeaderUDF[name="SubscriberProduct"and

value="Product BB Network Access"])</ns0:affinityCorrelation>

• <ns0:affinityActionValue>$var/Order/orderlines[productID='CFS

STB']/action/text()</ns0:affinityActionValue>

• <affinityCorrelation>$var/PlanItem[productID='GSMLine']/udfs[name='MSISDN']/value/text()</affinityCorrelation>

TIBCO® Fulfillment Order Management User's Guide

256 | Samples

Appendix

CGlobal Variables

Topics

• AOPD Global Variables• Orchestrator Global Variables• Global Variables and Configurations

TIBCO® Fulfillment Order Management User's Guide

AOPD Global Variables

This table is a mapping that shows the global variables in 2.0.1 mapped to configuration properties in 2.1.0.

For readability purpose, to property names are abbreviated as follow:• c.t.a.a for com.tibco.af.aopd• c.t.f.o for com.tibco.fom.oms

PurposeConfiguration Property in 2.1.0Global Variable Name in 2.0.1

AOPD Application Flags configurationAFF/Global/Constants/InternalUDFs

Internal UDFs to beskipped for affinitymerging

c.t.a.a.flags.udflistUDFList

AFF/Global/Constants/InventoryStatus

These properties are notrequired in AOPD

NA

AFF/Global/Constants/InventoryUserStatus

These properties are notrequired in AOPD

NA

AFF/Global/Constants/LineItemActionModes

These properties are notrequired in AOPD

NA

AFF/Global/Constants/LineItemActions

These properties are notrequired in AOPD

NA

AFF/Global/Constants/OfferValidation

These properties are notrequired in AOPD

NA

AFF/Global/Constants/OrderUDFs

These properties are notrequired in AOPD

NA

AFF/Global/Constants/PlanUDFs

These properties are notrequired in AOPD

NA

AFF/Global/Constants/ProductModelCharacteristics

These properties are notrequired in AOPD

NA

AFF/Global/Constants/ProductType

TIBCO® Fulfillment Order Management User's Guide

258 | Global Variables

PurposeConfiguration Property in 2.1.0Global Variable Name in 2.0.1

These properties are notrequired in AOPD

NA

AFF/Global/Constants/RegularExpressions

These properties are notrequired in AOPD

NA

AFF/Global/Constants/ResultStatus

These properties are notrequired in AOPD

NA

AFF/OfferConfigurationValidation/Constants

These properties are notrequired in AOPD

NA

AFF/OfferConfigurationValidation/Flags/AOPD

Controls the flag tomerge affinity UDFname

c.t.a.a.flags.affinity.affinityudfnamemergeAffinityUDFNameMerge

To not merge certainUDFs during Affinity

c.t.a.a.flags.affinity.characterisitcswithoutaffinitypostfix

CharacterisitcsWithoutAffinityPostfix

Sequencing those UDFsshould be added as CSVin the variable

LoadInventory

Within AOPD, if thesequence is -1, it will

c.t.a.a.flags.skipitemsequenceskipItemSequence

skip the product and allits mandatory childrenin the Execution Plan

MergeAffinityItemDescriptionc.t.a.a.flags.affinity.mergeaffinityitemdescriptionMergeAffinityItemDescription

Flag to determinewhether heirarchy child

c.t.a.a.flags.singleuse.hierarchysingleuseHierarchySingleUse

of single use productshould be deleted

Enable the UDF syntaxto determine the parent

c.t.a.a.flags.affinity.enableaffinityudfparentEnableAffinityUDFParent

product name andproduct name of theaffinity plan item

Allow Multiple RequiredProducts for the samelink ID

c.t.a.a.flags.allowmultiplerequiredproductsAllowMultipleRequiredProducts

Ignore First childdependency for source

c.t.a.a.flags.ignorepdofirstchilddependencyIgnorePDOFirstChildDependency

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 259

PurposeConfiguration Property in 2.1.0Global Variable Name in 2.0.1

product in PDOrelationship

AFF/OfferConfigurationValidation/Flags/Inventory

These properties are notrequired in AOPD

NA

AFF/OfferConfigurationValidation/Flags/OfferingManagement

These properties are notrequired in AOPD

NA

AFF/OfferConfigurationValidation/Flags/OfferValidation

These properties are notrequired in AOPD

NA

AFF/OfferConfigurationValidation/Interfaces/HTTP

AFF/OfferConfigurationValidation/Interfaces/JDBC

These properties are notrequired in AOPD

NA

AFF/OfferConfigurationValidation/Interfaces/JMS/Events

Password for the JMSserver events.

c.t.a.a.jms.jndi.security.credentialsMIG_Password

These properties are notrequired in AOPD

NAMIG_QueueConnectionFactory

These properties are notrequired in AOPD

NAMIG_TopicConnectionFactory

URL for the JMS serverevents.

c.t.a.a.jms.jndi.urlMIG_Url

Username for the JMSserver events.

c.t.a.a.jms.jndi.security.principalMIG_Username

AFF/OrderManagement/Constants

These properties are notrequired in AOPD

NA

AFF/OrderManagement/Flags

These properties are notrequired in AOPD

NA

AFF/OrderManagement/HTTP

These properties are notrequired in AOPD

NA

TIBCO® Fulfillment Order Management User's Guide

260 | Global Variables

PurposeConfiguration Property in 2.1.0Global Variable Name in 2.0.1

AFF/OrderManagement/JMS

The value for theproperties will be picked

Same asAFF/OfferConfigurationValidation/Interfaces/JMS/Events up from the JMS config

mentioned above

AOPD Integration ConfigurationAFF/OfferConfigurationValidation/Messaging/Queues

c.t.f.o.afi.aopd.amendplanrequest.sender.queueGLB_PlanDevelopmentAmendRequestQueue

c.t.f.o.afi.aopd.amendplanresponse.receiver.queueGLB_PlanDevelopmentAmendResponseQueue

c.t.f.o.afi.aopd.newplanrequest.sender.queueGLB_PlanDevelopmentNewRequestQueue

c.t.f.o.afi.aopd.newplanresponse.receiver.queueGLB_PlanDevelopmentNewResponseQueue

AFF/OfferConfigurationValidation/Messaging/Topics

c.t.f.o.afi.productmodel.publish.topicGLB_ProductCataloguePublishTopic

c.t.f.o.afi.actionmodel.publish.topicGLB_ActionCataloguePublishTopic

AFF/OrderManagement/ProductManagement/Interfaces/JMS/Services

The value for theproperties will be picked

Same asAFF/OfferConfigurationValidation/Interfaces/JMS/Events up from the JMS config

mentioned above

CommonServicesClientLib/CommonServices

These properties are notrequired in AOPD

NA

CommonServicesClientLib/Events

These properties are notrequired in AOPD

NA

CommonServicesClientLib/Timing

These properties are notrequired in AOPD

NA

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 261

Orchestrator Global Variables

This table is a mapping that shows the global variables in 2.0.1 mapped to configuration properties in 2.1.0.

For readability purpose, to property names are abbreviated as follow:• c.t.f for com.tibco.fom

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

affv4/common/constants/resultStatus

These GVs are notexposed for

NAError

modification inAdministrator. InOMS, this is handledinternally. Hence it isnot carried forwardas a property inOrchestrator.

These GVs are notexposed for

NAFatal

modification inAdministrator. InOMS, this is handledinternally. Hence it isnot carried forwardas a property inOrchestrator.

These GVs are notexposed for

NAInformation

modification inAdministrator. InOMS, this is handledinternally. Hence it isnot carried forwardas a property inOrchestrator.

These GVs are notexposed for

NASuccess

modification inAdministrator. InOMS, this is handledinternally. Hence it isnot carried forwardas a property inOrchestrator.

TIBCO® Fulfillment Order Management User's Guide

262 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

These GVs are notexposed for

NAWarning

modification inAdministrator. InOMS, this is handledinternally. Hence it isnot carried forwardas a property inOrchestrator.

affv4/common/messaging/jms

All the jmsdestination name

String to be prefixedto each JMSdestination name.

NA.GLB_MessagingPrefix

properties in OMScontains this prefix intheir value itself.Since beginning,there is no separateprefix property.Hence this GV is notcarried forward as aproperty inOrchestrator.

affv4/orchestrator/configuration

This GV is notrelevant in

Time delay in msecafter which the

NAGLB_CleanUpObjectsDelay

Orchestrator andinstances of ordershence not carriedand plans which areforward in 2.1.0.scheduled to cleanupSince OMS DB is thewill be actually

cleaned up (deleted). only datastore now,the cleanup of orderdata from it ishandled by the purgeutility.

NAThe name of thedefault error handler

Default Process ComponentError Handlerc.t.f.orch.pcErrorHandler

GLB_DefaultProcessComponentErrorHandler

component to whichOrchestrator sendsthe PlanItemExecuteFailedRequest forfailed plan items.

NARetry count for failedFeasibility step.

Feasibility Retriesc.t.f.orch.feasibilityRetries

GLB_FeasibilityRetries

NAInterval in msec towait before retryingfailed Feasibility step.

Feasibility Retry Intervalc.t.f.orch.feasibilityRetryInterval

GLB_FeasibilityRetryInterval

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 263

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

NARetry count for failedOPD step.

OPD Retriesc.t.f.orch.OPDRetries

GLB_OPDRetries

NAInterval in msec towait before retryingfailed OPD step.

OPD Retry Intervalc.t.f.orch.opdRetryInterval

GLB_OPDRetryInterval

Plan Item SLAnotification feature is

SLA threshold forpercentage of

NAGLB_PlanItemSLAThresholdConstant

removed frommaximum durationOrchestrator in 2.1.0to publish an SLA

notification. release. This GV isnot relevant andhence not carriedforward.

NADefault retry countfor failed processcomponents.

Maximum number of retriesfor failed process componentc.t.f.orch.failedPC.maxRetryCount

GLB_ProcessComponentRetries

NADefault retry delay inmsec for failedprocess components.

Time interval betweenconsecutive retry attempts forfailed process componentc.t.f.orch.failedPC.retryInterval

GLB_ProcessComponentRetryInterval

This property is usedin BE Orchestrator to

Polling interval inmsec for scheduler.

NAGLB_SchedulerPollingInterval

create the BEscheduler threads onstartup. It is notrelevant in theOrchestrator andhence not carriedforward.

This property wasadded specifically to

The path of outputfile to be used by BEprofiler.

NAGLB_BEProfilerOutputFilePath

control the BEengine's profiling. Itis not relevant in theOrchestrator andhence not carriedforward.

This property wasadded specifically to

The level of BEengine profiling

NAGLB_BEProfilerLevel

control the BEengine's profiling. Itis not relevant in theOrchestrator andhence not carriedforward.

This property wasadded specifically to

The time duration inseconds for which the

NAGLB_BEProfilerDurationInSeconds

TIBCO® Fulfillment Order Management User's Guide

264 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

control the BEengine's profiling. It

profiling is to bedone.

is not relevant in theOrchestrator andhence not carriedforward.

affv4/orchestrator/constants/actions

This GV is notexposed for

Order line cancelaction.

NACancel

modification inAdministrator. InOMS, this is handledinternally. Hence it isnot carried forwardas a property inOrchestrator.

affv4/orchestrator/constants/dependencyStatus

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. InOMS, dependencystatus constants aremaintainedinternally. Hencethese GVs are notcarried forward as aproperties inOrchestrator.

affv4/orchestrator/constants/errors

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. InOrchestrator, theerror messages arenot exactly same.Hence these GVs arenot carried forwardin Orchestrator.

affv4/orchestrator/constants/Generic

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 265

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

This property wasintroduced and used

NANAGLB_OriginatorString

in Orchestrator toTDS integration (pre2.1.0). It is notrelevant in theOrchestrator andhence not carriedforward.

affv4/orchestrator/constants/Milestone

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. InOMS, milestonenames aremaintainedinternally. Hencethese GVs are notcarried forward as aproperties inOrchestrator.

affv4/orchestrator/constants/milestoneStatus

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. InOMS, milestonestatus constants aremaintainedinternally. Hencethese GVs are notcarried forward as aproperties inOrchestrator.

affv4/orchestrator/constants/notificationEventName

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. Thesewere added in BEOrchestrator to

TIBCO® Fulfillment Order Management User's Guide

266 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

identify thenotification eventtype in the commoninternal event. Noneof these GVs arerelevant and hencenot carried forwardas a properties inOrchestrator.

affv4/orchestrator/constants/notifications

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. Themessages to be sentin various entitystatus changenotification eventsare handled inOrchestratorinternally. None ofthese GVs arerelevant and hencenot carried forwardas a properties inOrchestrator.

affv4/orchestrator/constants/orderAmendmentStatus

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. InOMS, orderamendment statusconstants aremaintainedinternally. Hencethese GVs are notcarried forward as aproperties inOrchestrator.

affv4/orchestrator/constants/orderLineStatus

None of the GVsunder this category

NANANA

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 267

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

are exposed formodification throughAdministrator. InOMS, order linestatus constants aremaintainedinternally. Hencethese GVs are notcarried forward as aproperties inOrchestrator.

affv4/orchestrator/constants/orderStatus

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. InOMS, order statusconstants aremaintainedinternally. Hencethese GVs are notcarried forward as aproperties inOrchestrator.

affv4/orchestrator/constants/planItemStatus

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. InOMS, plan itemstatus constants aremaintainedinternally. Hencethese GVs are notcarried forward as aproperties inOrchestrator.

affv4/orchestrator/constants/planStatus

None of the GVsunder this category

NANANA

are exposed formodification throughAdministrator. InOMS, plan status

TIBCO® Fulfillment Order Management User's Guide

268 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

constants aremaintainedinternally. Hencethese GVs are notcarried forward as aproperties inOrchestrator.

affv4/orchestrator/constants/processComponentID

NAName of the processcomponent to

Need to externalize inConfigValues_OMS.xml

NoReciprocalAction

indicate no reciprocalaction is required oncancellation.

NAName of the processcomponent to

Non Executing PlanfragmentID c.t.f.orch.nonexecuting.planfragmentID

NonExecuting

indicate that noaction need to be sentto processcomponents.

affv4/orchestrator/flags

This GV is notrelevant in

Flag to enablecleanup of objects at

NAGLB_CleanupObjectsAtEndOfOrder

Orchestrator andthe end of an orderlifecycle. hence not carried

forward in 2.1.0.Since OMS DB is theonly datastore now,the cleanup of orderdata from it ishandled by the purgeutility.

This GV is notrelevant in

Flag to enableorderID generation

NAGLB_EnableExternalOrderIDSource

Orchestrator andexternal toOrchestrator. hence not carried

forward in 2.1.0.OMS generates theunique orderID foreach incoming orderand the Orchestratoruses only that.

NAFlag to enablePreQualification

Enable Feasibility ErrorHandling

GLB_EnableFeasibilityErrorHandling

Failed Handler forfeasibility failures.

c.t.f.orch.enableFeasibilityErrorHandling

This GV is notrelevant in

Flag to enable OMSintegration.

NAGLB_EnableOMSIntegration

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 269

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

Orchestrator andhence not carriedforward in 2.1.0. TheOrchestrator is anintegral part of OMS.

NAFlag to enablePreQualification

Enable OPD Error Handlingc.t.f.orch.enableOPDErrorHandling

GLB_EnableOPDErrorHandling

Failed Handler forOPD failures.

NAFlag to enable orderamendment statusnotifications.

Enable Order AmendmentStatus Changec.t.f.orch.enableOrderAmendmentStatusChange

GLB_EnableOrderAmendmentStatusNotifications

There is no need tohave a flag to

Flag to enable orderamendments.

NAGLB_EnableOrderAmendments

enable/disableamendments.Amendmentfunctionality iswidely used bycustomers and isOOTB. Since it is notrelevant, this GV isnot carried forwardin Orchestrator.

NAFlag to enable orderline statusnotifications.

Enable OrderLine StatusChangec.t.f.orch.enableOrderLineStatusChange

GLB_EnableOrderLineStatusNotifications

Order rejectfunctionality is not

Flag to enable orderreject notifications.

NAGLB_EnableOrderRejectNotifications

relevant in 2.1.0.OMS web serviceinterface takes care ofrejecting the order bysending theappropriate response.Since it is notrelevant, this GV isnot carried forwardin Orchestrator.

NAFlag to enable orderstatus notifications.

Enable Order Status Changec.t.f.orch.enableOrderStatusChange

GLB_EnableOrderStatusNotifications

TIBCO® Fulfillment Order Management User's Guide

270 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

NAFlag to enable plandevelopmentnotifications.

Enable Plan developmentnotificationc.t.f.orch.enablePlanDevelopmentNotification

GLB_EnablePlanDevelopmentNotifications

This flag was addedin BE Orchestrator

Flag to enable planitem failednotifications.

NAGLB_EnablePlanItemFailedNotifications

specifically fromOMS perspective.PlanItemNotificationEvent fora failed plan item ispublished if this flagis enabled. Based onthe notification, OMScould show the statusasERROR_HANDLER.Since Orchestrator isan integral part ofOMS in 2.1.0, it ishandled internally.This flag is notrelevant and hencenot carried forward.

Plan Item SLAnotification feature is

Flag to enable SLAnotifications for planitems.

NAGLB_EnablePlanItemSLANotification

removed fromOrchestrator in 2.1.0release. This GV isnot relevant andhence not carriedforward.

NAFlag to enable planitem statusnotifications.

Enable PlanItem StatusChangec.t.f.orch.enablePlanItemStatusChange

GLB_EnablePlanItemStatusNotifications

NAFlag to enable planstatus notifications.

Enable Plan Status Changec.t.f.orch.enablePlanStatusChange

GLB_EnablePlanStatusNotifications

Orchestrator is anintegral part of OMS

Flag to enablesending response tosubmit order events.

NAGLB_EnableSubmitOrderResponses

now. OMS webservice is the onlyentry point interfaceand there is no needto send any responseevent. This GV is notrelevant and hencenot carried forward.

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 271

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

NAFlag to enablefeasibility step.

Feasibility Requiredc.t.f.orch.feasibilityRequired

GLB_FeasibilityRequired

NAFlag to enable retry offailed Feasibility step.

Retry Failed Feasibilityc.t.f.orch.retryFailedFeasibility

GLB_RetryFailedFeasibility

NAFlag to enable retry offailed OPD step.

Retry Failed OPDc.t.f.orch.retryFailedOPD

GLB_RetryFailedOPD

NAFlag to enable retry offailed processcomponents.

Enable retries for failedprocess componentsc.t.f.orch.failedPC. enableRetry

GLB_RetryFailedProcessComponents

This flag is notrelevant and hence

Flag to enable storingfailed plan itemmessages.

NAGLB_StoreFailedPlanItemMessages

not carried forwardin Orchestrator.

This flag is notrelevant and hence

Flag to enable storingfailed process

NAGLB_StoreFailedProcessComponentsMessages

not carried forwardin Orchestrator.

componentsmessages.

This flag is notrelevant and hence

Flag to enable storingfailed process Pre

NAGLB_StorePreQualificationFailedMessages

not carried forwardin Orchestrator.

Qualificationmessages.

This flag is notrelevant and hence

Flag to enable BEengine's profiling.

NAGLB_EnableBEProfiling

not carried forwardin Orchestrator.

affv4/orchestrator/flags/notification

Need to decide onwhether to support

Flag to include theorder on order

NAGLB_IncludeOrderOnOrderAmendmentNotification

this functionality inOrchestrator.

amendmentnotifications.

Need to decide onwhether to support

Flag to include theorder on order linenotifications.

NAGLB_IncludeOrderOnOrderLineNotification

this functionality inOrchestrator.

Need to decide onwhether to support

Flag to include theorder on ordernotifications.

NAGLB_IncludeOrderOnOrderNotification

this functionality inOrchestrator.

Need to decide onwhether to support

Flag to include theplan on order

NAGLB_IncludePlanOnOrderAmendmentNotification

this functionality inOrchestrator.

amendmentnotifications.

TIBCO® Fulfillment Order Management User's Guide

272 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

Need to decide onwhether to support

Flag to include theplan on order linenotifications.

NAGLB_IncludePlanOnOrderLineNotification

this functionality inOrchestrator.

Need to decide onwhether to support

Flag to include theplan on ordernotifications.

NAGLB_IncludePlanOnOrderNotification

this functionality inOrchestrator.

affv4/orchestrator/interfaces/jdbc/backingstore

None of the GVsunder this category

NANANA

are relevant forOrchestrator sincestarting version 2.1.0,Orchestrator is anintegral part of OMSnow and uses onlyOMS DB. Hencethese GVs are notcarried forward inOrchestrator.

affv4/orchestrator/interfaces/jms/events

None of the GVsunder this category

NANANA

are relevant forOrchestrator sincestarting version 2.1.0,Orchestrator is anintegral part of OMSnow and uses theJMS connectionproperties used byOMS. Hence theseGVs are not carriedforward inOrchestrator.

affv4/orchestrator/messaging/jms/destinations

DeleteOrderRequestEventis not relevant in

Delete order requestdestination.

NAGLB_DataDeleteOrderRequest

Orchestrator andhence this GV is notcarried forward.

DeleteOrderResponseEventis not relevant in

Delete order responsedestination.

NAGLB_DataDeleteOrderResponse

Orchestrator and

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 273

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

hence this GV is notcarried forward.

DeletePlanRequestEventis not relevant in

Delete plan requestdestination.

NAGLB_DataDeletePlanRequest

Orchestrator andhence this GV is notcarried forward.

DeletePlanResponseEventis not relevant in

Delete plan responsedestination.

NAGLB_DataDeletePlanResponse

Orchestrator andhence this GV is notcarried forward.

GetOrderRequestEventis not relevant in

Get order requestdestination.

NAGLB_DataGetOrderRequest

Orchestrator andhence this GV is notcarried forward.

GetOrderResponseEventis not relevant in

Get order responsedestination.

NAGLB_DataGetOrderResponse

Orchestrator andhence this GV is notcarried forward.

GetOrderSummaryRequestEventis not relevant in

Get order summaryrequest destination.

NAGLB_DataGetOrderSummaryRequest

Orchestrator andhence this GV is notcarried forward.

GetOrderSummaryResponseEventis not relevant in

Get order summaryresponse destination.

NAGLB_DataGetOrderSummaryResponse

Orchestrator andhence this GV is notcarried forward.

GetPlanItemsRequestEventis not relevant in

Get plan itemsrequest destination.

NAGLB_DataGetPlanItemsRequest

Orchestrator andhence this GV is notcarried forward.

GetPlanItemsResponseEventis not relevant in

Get plan itemsresponse destination.

NAGLB_DataGetPlanItemsResponse

Orchestrator andhence this GV is notcarried forward.

GetPlanRequestEventis not relevant in

Get plan requestdestination.

NAGLB_DataGetPlanRequest

Orchestrator and

TIBCO® Fulfillment Order Management User's Guide

274 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

hence this GV is notcarried forward.

GetPlanResponseEventis not relevant in

Get plan responsedestination.

NAGLB_DataGetPlanResponse

Orchestrator andhence this GV is notcarried forward.

NAExternal feasibilityhandler requestdestination.

External Feasibility requestqueuec.t.f.orch.feasibility.request.queue

GLB_ExternalFeasibilityRequest

NAExternal feasibilityhandler responsedestination.

External Feasibility replyqueuec.t.f.orch.feasibility.reply.queue

GLB_ExternalFeasibilityResponse

NAExternal plandevelopment handlerrequest destination.

OPDRequest fromOrchestrator receiver queuec.t.f.oms.afi.orch.opdrequest.receiver.queue

GLB_ExternalOPDRequest

NAExternal plandevelopment handlerresponse destination.

OPDResponse to Orchestratorsender queuec.t.f.oms.afi.orch.opdresponse.sender.queue

GLB_ExternalOPDResponse

NAExternal plan itemfailed handler requestdestination.

PlanItem error handler requestqueuec.t.f.orch.planItem.errhandler.request.queue

GLB_ExternalPlanItemFailedRequest

NAExternal plan itemfailed handlerresponse destination.

PlanItem error handlerresponse queuec.t.f.orch.planItem.errhandler.response.queue

GLB_ExternalPlanItemFailedResponse

NAExternalpre-qualification

ExternalPreQualificationFailed request

GLB_ExternalPreQualificationFailedRequest

failed handler requestdestination.

queuec.t.f.orch.prequalificationfailed.request.queue

NAExternalpre-qualification

ExternalPreQualificationFailed reply

GLB_ExternalPreQualificationFailedResponse

failed handlerresponse destination.

queuec.t.f.orch.prequalificationfailed.reply.queue

The JMS queuespecified by this GV

Dependency timedelta triggerdestination.

NAGLB_InternalDependencyTimeDelta

is not relevant andhence not carriedforward inOrchestrator. It was

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 275

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

BE implementationspecific.

The JMS queuespecified by this GV

Feasibility requesttrigger destination.

NAGLB_InternalFeasibilityRequest

is not relevant andhence not carriedforward inOrchestrator. It wasBE implementationspecific.

The JMS queuespecified by this GV

OPD request triggerdestination.

NAGLB_InternalOPDRequest

is not relevant andhence not carriedforward inOrchestrator. It wasBE implementationspecific.

The JMS queuespecified by this GV

Plan item retry timedelta triggerdestination.

NAGLB_InternalPlanItemRetryTimeDelta

is not relevant andhence not carriedforward inOrchestrator. It wasBE implementationspecific.

The JMS queuespecified by this GV

Plan item SLA triggerdestination.

NAGLB_InternalPlanItemSLANotifyTrigger

is not relevant andhence not carriedforward inOrchestrator. It wasBE implementationspecific.

The JMS topicspecified by this GV

Process componentmodel publishdestination.

NAGLB_ModelProcessComponentModel

is not relevant andhence not carriedforward inOrchestrator.Orchestrator uses theplan fragment fromOMS DB.

NAOrder changenotification publishdestination.

Order status changedestinationc.t.f.orch.order.statusChange.destination

GLB_NotificationOrder

TIBCO® Fulfillment Order Management User's Guide

276 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

NAOrder amendmentchange notificationpublish destination.

Order Amendment statuschange destinationc.t.f.orch.orderAmendment.statusChange.destination

GLB_NotificationOrderAmendment

NAOrder line changenotification publishdestination.

OrderLine status changedestinationc.t.f.orch.orderLine.statusChange.destination

GLB_NotificationOrderLine

The JMS topicspecified by this GV

Order rejectnotification publishdestination.

NAGLB_NotificationOrderReject

is not relevant andhence not carriedforward inOrchestrator.Orchestrator uses theplan fragment fromOMS DB.

NAPlan changenotification publishdestination.

Plan status change destinationc.t.f.orch.plan.statusChange.destination

GLB_NotificationPlan

NAPlan developmentnotification publishdestination.

Plan development notificationdestinationc.t.f.orch.planDevelopment.notification.destination

GLB_NotificationPlanDevelopment

NAPlan item changenotification publishdestination.

PlanItem status changedestinationc.t.f.orch.planItem.statusChange.destination

GLB_NotificationPlanItem

Plan Item SLAnotification feature is

Plan item SLAnotification publishdestination.

NAGLB_NotificationPlanItemSLA

removed fromOrchestrator in 2.1.0release. This GV isnot relevant andhence not carriedforward.

The Orchestratordoesn't use the queue

Orchestrator startupevent request for

NAGLB_OrchestratorStartupEvent

specified in this GVprocess componentmodels anymore. Hence this

GV is not carriedforward.

The Orchestratordoesn't use the queue

Orchestrator startupservice request for

NAGLB_OrchestratorStartupService

specified in this GVprocess componentmodels anymore. Hence this

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 277

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

GV is not carriedforward.

NAOrder activaterequest publishdestination.

Activate order request queuec.t.f.orch.order.activateRequest.queue

GLB_OrderActivate

Order cancellation isimplemented and

Order cancel requestpublish destination.

NAGLB_OrderCancel

achieved using orderamendmentfunctionality. TheOrchestrator doesn'tuse the queuespecified in this GVanymore. Hence thisGV is not carriedforward.

NAOrder submit requestpublish destination.

Need to externalize inConfigValues_OMS.xml

GLB_OrderSubmit

NAOrder suspendrequest publishdestination.

Suspend order request queuec.t.f.orch.order.suspendRequest.queue

GLB_OrderSuspend

NAOrder withdrawrequest publishdestination.

Need to externalize inConfigValues_OMS.xml

GLB_OrderWithdraw

NAPlan item activaterequest destination.

PlanItem activate requestqueue c.t.f.orch.planItem.activate.request.queue

GLB_PlanItemActivateRequest

NAPlan item executerequest destination.

PlanItem execution requestqueue c.t.f.orch.planItem.execute.request.queue

GLB_PlanItemExecuteRequest

NAPlan item executeresponse destination.

PlanItem suspend requestqueue c.t.f.orch.planItem.suspend.request.queue

GLB_PlanItemExecuteResponse

NAPlan item externaldependency releasedestination.

PlanItem External DependencyRelease Request queuec.t.f.orch.planItem.externalDependency.release.request.queue

GLB_PlanItemExternalDependencyReleaseRequest

NAPlan item milestonenotify destination

MilestoneNotifyRequest fromprocess components to

GLB_PlanItemMilestoneNotifyRequest

(Process Componentto Orchestrator).

Orchestrator queuec.t.f.orch.planItem.milestone.notifyRequest.queue

NAPlan item milestonerelease destination

MilestoneReleaseRequest fromOrchestrator to process

GLB_PlanItemMilestoneReleaseRequest

TIBCO® Fulfillment Order Management User's Guide

278 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

(Orchestrator toProcess Component).

components queuec.t.f.orch.planItem.milestone.releaseRequest.queue

NAPlan item suspendrequest destination.

PlanItem suspend requestqueuec.t.f.orch.planItem.suspend.request.queue

GLB_PlanItemSuspendRequest

NAPlan item suspendresponse destination.

PlanItem suspend responsequeuec.t.f.orch.planItem.suspend.response.queue

GLB_PlanItemSuspendResponse

Since Orchestrator isan integral part of

Set plan to OMSdestination.

NAGLB_PlanOMSSet

OMS now, it doesn'tuse the queuespecified in this GV.Hence it is notrelevant and notcarried forward.

The Orchestratordoesn't use the queue

Plan item set statusrequest destination.

NAGLB_PlanSetPlanItemStatusRequest

specified in this GVanymore. Hence thisGV is not relevantand not carriedforward.

The Orchestratordoesn't use the queue

Plan item set statusreply destination.

NAGLB_PlanSetPlanItemStatusResponse

specified in this GVanymore. Hence thisGV is not relevantand not carriedforward.

Since Orchestrator isan integral part of

Set plan OMSresponse destination.

NAGLB_PlanOMSSe tResponse

OMS now, it doesn'tuse the queuespecified in this GV.Hence it is notrelevant and notcarried forward.

The JMS queuespecified by this GV

CleanUpOrderRequestdestination

NAGLB_InternalCleanUpOrderRequest

is not relevant andhence not carriedforward inOrchestrator. It was

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 279

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

BE implementationspecific.

The JMS queuespecified by this GV

CleanUpPlanRequestdestination

NAGLB_InternalCleanUpPlanRequest

is not relevant andhence not carriedforward inOrchestrator. It wasBE implementationspecific.

commonServices/configuration

The Orchestrator isJava based and uses

Log level to be used.NAGLB_LogLevel

the same Log4Jconfigurations usedby OMS fromomsServerLog4j.xmlfile. Hence this GV isnot carried forward.

The Orchestrator isJava based and uses

Log level to be usedfor publishing thelogs.

NAGLB_LogPublishLevel

the same Log4Jconfigurations usedby OMS fromomsServerLog4j.xmlfile. Hence this GV isnot carried forward.

commonServices/flags

The Orchestrator isJava based and uses

Flag to enable errorpublishing.

NAGLB_EnableErrorPublish

the same Log4Jconfigurations usedby OMS fromomsServerLog4j.xmlfile. Hence this GV isnot carried forward.

Need to decide onwhether to support

Flag to enableinstrumentationpublishing.

NAGLB_EnableInstrumentationPublish

instrumentationfunctionality inOrchestrator.

The Orchestrator isJava based and uses

Flag to enable logpublishing.

NAGLB_EnableLogPublish

the same Log4Jconfigurations usedby OMS fromomsServerLog4j.xml

TIBCO® Fulfillment Order Management User's Guide

280 | Global Variables

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

file. Hence this GV isnot carried forward.

commonServices/interfaces/jms/events

None of the GVsunder this category

NANANA

are relevant forOrchestrator sinceOrchestrator is anintegral part of OMSnow and uses theJMS connectionproperties used byOMS. Hence theseGVs are not carriedforward inOrchestrator.

commonServices/messaging/jms/

All the jmsdestination name

String to be prefixedto each JMSdestination name.

NAGLB_MessagingPrefix

properties in OMScontains this prefix intheir value itself.Since beginning,there is no separateprefix property.Hence this GV is notcarried forward as aproperty inOrchestrator.

commonServices/messaging/jms/destinations

Need to decide onwhether to support

NAGLB_DiscoverEngineRequest

this functionality inOrchestrator.

Need to decide onwhether to support

NAGLB_DiscoverEngineResponse

this functionality inOrchestrator.

The Orchestrator isJava based and uses

Exception publishtopic.

NAGLB_Exception

the same Log4Jconfigurations usedby OMS fromomsServerLog4j.xml

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 281

CommentsDescriptionConfiguration Property in2.1.0 (name and propnamein ConfigValues_OMS.xml)

Global Variable Name in2.0.1

file. Hence this GV isnot carried forward.

The JMS topicspecified by this GV

Get activeconfiguration

NAGLB_GetActiveConfigVariableRequest

is not relevant andvariable requesttopic. hence not carried

forward inOrchestrator. It wasBE implementationspecific.

The JMS topicspecified by this GV

Get activeconfiguration

NAGLB_GetActiveConfigVariableResponse

is not relevant andvariable responsetopic. hence not carried

forward inOrchestrator. It wasBE implementationspecific.

Need to decide onwhether to support

Instrumentationpublish topic.

NAGLB_Instrumentation

instrumentationfunctionality inOrchestrator.

The Orchestrator isJava based and uses

Log publish topic.NAGLB_Log

the same Log4Jconfigurations usedby OMS fromomsServerLog4j.xmlfile. Hence this GV isnot carried forward.

TIBCO® Fulfillment Order Management User's Guide

282 | Global Variables

Global Variables and ConfigurationsThe following section lists the global variables in OCV component and the configuration properties in OMS.

ActiveFulfillmentRulesEngine (OCV)

The global variablesin the OCV component are listed as follows:

TypeValueDescriptionName

StringMOVEMove IPC line item action mode.Move

StringNEWNew IPC line item action mode.New

BooleanfalseFlag indicating whether Persist flag shoud beignored when UDF is stored in Inventory.

GLB_IgnoreUDFPersistFlag

BooleantrueFlag indicating if inventory services shouldpublish event notifications.

GLB_PublishInventoryNotifications

StringfalseFlag indicating whether or not inventory needsto be sorted.

GLB_SortItemsOnGet

BooleantrueFlag indicating that only UDFs that are InputCharacteristics are stored in Inventory.

GLB_StoreInpCharUDFsOnly

BooleantrueFlag indicating if eligible product calls shouldfilter out technical products.

GLB_FilterTechnicalProducts

StringDBPersistence mode for offers. Valid values areBE or DB.

GLB_OfferPersistenceMode

BooleantrueInstructs rules to check for products ininstallbase in addition to order lines.

CheckInstallbase

BooleanfalseEligibility is always validated forParentCustomerID, not subscriber.

EligibilityValidationByCustomer

BooleanfalseFlag indicating if an external validation engineis to be used.

GLB_UseExternalValidationEngine

BooleantrueSelects Implicit or Explicit validation mode forValidation rules.

ImplicitValidation

StringPOOL_Buyer prefix used to bypass some validationsPoolBuyersPrefixes

BooleantrueEnables rule testing that order line item withCEASE action contains InventoryID.

TestCeaseOrderLineRequired

Values

BooleantrueEnables rule checking that UPDATEs containInventoryID and ActionMode.

TestCheckUpdatesValid

BooleantrueEnables rule testing Concurrent Order violationTestConcurrentOrderViolation

BooleantrueEnables rule checking both group and productcounts.

TestGroupAndProductCounts

Satisfied

BooleantrueEnables rule testing ProductComprisedOf andProductsRequiredFor groups.

TestGroupRequirementsSatisfied

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 283

BooleantrueEnables rule testing that order line with actionmode MOVE contains InventoryID.

TestMoveOrderLineRequired

Values

BooleantrueEnables rule testing datatype and length ofOrder line UDFs.

TestOrderLineUDFsDatatype

BooleantrueEnables rule testing RangeValue of Order lineUDFs.

TestOrderLineUDFsRange

BooleantrueEnables rule testing that UDF value conformsto regex provided in MDM.

TestOrderLineUDFsRegex

BooleantrueEnables rule testing validity of Order line UDFsTestOrderLineUDFsValid

BooleantrueEnables rule testing PCO relationships.TestPCORelationshipsSatisfied

BooleantrueEnables rule testing that Product is compatiblewith order or installbase.

TestProductCompatible

BooleantrueEnables rule testing RecMin and RecMax forindividual products.

TestProductCountSatisfied

BooleantrueEnables rule testing that Product exists ininstallbase.

TestProductExistsInIB

BooleantrueEnables rule testing that Product isincompatible with order or installbase.

TestProductIncompatible

BooleantrueEnables rule testing that Product is Eligible.TestProductIsEligible

BooleantrueEnables rule testing that RECORD_TYPE isvalid.

TestProductRecordTypeValid

BooleantrueEnables rule testing that order line item withUPDATE action contains required values.

TestUpdateOrderLineRequiredValues

BooleanfalseWhen loading ProductInputCharacteristicshelper concept, only use those with OrderCapture set.

ValidateOrderCaptureUDFsOnly

StringtrueFlag controls the destinations for acceptingorder until the customer model is received inOCV.

WaitForCustomerModel

StringtrueFlag controls whether the BE engine start upevents should be fired.

onBEStartUp

StringREFPrefix to append to database-generated orderref.

GLB_DBOrderRefPrefix

StringDBFlag indicating what type of order ref generatorto use. Valid values are DB or UID.

GLB_OrderRefGenerator

BooleantrueFlag indicating if order services should publishevent notifications.

GLB_PublishOrderNotifications

BooleantrueFlag indicating if orders should be updated inthe offer cache on submit.

GLB_UpdateOfferOnSubmit

BooleanfalseFlag indicating if an external amendmentAOPD engine is available.

GLB_UseExternalAmendmentAOPD

TIBCO® Fulfillment Order Management User's Guide

284 | Global Variables

BooleantrueFlag indicating if orders should be validatedas part of the SubmitOrder process.

GLB_ValidateOnSubmit

Integer60000Timeout in msec for BE event wait for replyactivities.

GLB_BEEventReplyTimeout

Integer10000Timeout in msec for IPC order plan JMSrequests.

GLB_IPCOrderPlanRequest

BooleanfalseGLB_CreateParentStringAtProduct

ModelLoad

BooleanfalseGLB_IntegrityValidationRequired

PasswordPassword for the JMS server for PC services.MIG_Password

StringQueueConnection

Factory

Queue connection factory for the JMS serverfor PC services.

MIG_QueueConnectionFactory

StringTopicConnection

Factory

Topic connection factory for the JMS server forPC services.

MIG_TopicConnectionFactory

Stringtibjmsnaming://

localhost:7222

URL for the JMS server for PC services.MIG_Url

StringadminUsername for the JMS server for PC services.MIG_Username

PasswordPassword for the JMS server for OM services.MIG_Password

StringQueueConnection

Factory

Queue connection factory for the JMS serverfor OM services.

MIG_QueueConnectionFactory

StringTopicConnection

Factory

Topic connection factory for the JMS server forOM services.

MIG_TopicConnectionFactory

Stringtibjmsnaming://

localhost:7222

URL for the JMS server for OM services.MIG_Url

StringadminUsername for the JMS server for OM services.MIG_Username

PasswordPassword for the JMS server for OM events.MIG_Password

StringQueueConnection

Factory

Queue connection factory name for the JMSserver for OM events.

MIG_QueueConnectionFactory

StringTopicConnection

Factory

Topic connection factory name for the JMSserver for OM events.

MIG_TopicConnectionFactory

Stringtibjmsnaming://

localhost:7222

URL for the JMS server for OM events.MIG_Url

StringadminUsername for the JMS server for OM events.MIG_Username

PasswordPassword for the JMS server for OCV services.MIG_Password

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 285

StringQueueConnection

Factory

Queue connection factory name for the JMSserver for OCV services.

MIG_QueueConnectionFactory

StringTopicConnection

Factory

Topic connection factory name for the JMSserver for OCV services.

MIG_TopicConnectionFactory

Stringtibjmsnaming://

localhost:7222

URL for the JMS server for OCV services.MIG_Url

StringadminUsername for the JMS server for OCV services.MIG_Username

PasswordPassword for the JMS server for OCV events.MIG_Password

StringQueueConnection

Factory

Queue connection factory name for the JMSserver for OCV events.

MIG_QueueConnectionFactory

StringTopicConnection

Factory

Topic connection factory name for the JMSserver for OCV events.

MIG_TopicConnectionFactory

Stringtibjmsnaming://

localhost:7222

URL for the JMS server for OCV events.MIG_Url

StringadminUsername for the JMS server for OCV events.URL for the JMS server for OCVevents

StringlocalhostMIG_Host

String25400HTTP port for northbound SOAP over HTTPweb services.

MIG_Port

StringlocalhostMIG_Host

String25401HTTP port for northbound SOAP over HTTPweb services.

MIG_Port

Integer10Login timeout in sec for the BE backing storedatabase.

GLB_LoginTimeout

Integer10Maximum number of database connections forthe BE backing store database.

GLB_MaxConnections

Stringoracle.jdbc.

OracleDriver

MIG_Driver

StringlocalhostHostname for the BE backing store database.MIG_Host

String<jdbcurl>Provide JDBC URL for the BE backing storedatabase.

MIG_JDBCURL

Stringbe_userPassword for the BE backing store database.MIG_Password

String1521Database port for the BE backing storedatabase.

MIG_Port

StringAFFDatabase SID or service name for the BEbacking store database.

MIG_SID

Stringbe_userUsername for the BE backing store database.MIG_Username

TIBCO® Fulfillment Order Management User's Guide

286 | Global Variables

Stringtibco.affMessaging prefix for all JMS message queuesand topics.

GLB_MessagingPrefix

Stringcatalog.events.

request

GLB_CatalogRequestQueue

Integer60000Timeout in msec for BE event wait for replyactivities.

GLB_BEEventReplyTimeout

Integer10000Timeout in msec for IPC order plan JMSrequests.

GLB_IPCOrderPlanRequest

Stringtibco.aff.hot.

deploy.variable.

HotDeployVariableRequestTopic

request.topic

StringBWLogHandlerName of the log handler implementation tocall for log steps.

LogHandler

Stringtibco.aff.

centrallog.topic

LogTopic

StringApp_UserUser log role.User

StringINFOlogLevel

Integer1Logging level for BE log statements.logLevel

BooleantrueEnableTiming

Integer10Login timeout in sec for the BE backing storedatabase.

GLB_LoginTimeout

Integer10Maximum number of database connections forthe BE backing store database.

GLB_MaxConnections

Order Management System

The following table lists down the consolidated configuration properties in the Order Management System.

Default ValueDescriptionName

10099JMX RMI Port.com.tibco.aff.oms.jmx.rmiport

tibco.aff.oms.statusNotification.order.queue

Order Status Notification Queue.com.tibco.af.oms.statusnotification.order.queue

2Order Status Notification QueueConcurrent Listener Count.

com.tibco.af.oms.statusnotification.order.queue.concurrentConsumersCount

tibco.aff.oms.statusNotification.orderLine.queue

Order Line Status NotificationQueue.

com.tibco.af.oms.statusnotification.orderLine.queue

1Order Line Status NotificationQueue Concurrent Listener Count.

com.tibco.af.oms.statusnotification.orderLine.queue.concurrentConsumersCount

tibco.aff.oms.statusNotification.plan.queue

Plan Status Notification Queue.com.tibco.af.oms.statusnotification.plan.queue

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 287

Default ValueDescriptionName

1Plan Status Notification QueueConcurrent Listener Count.

com.tibco.af.oms.statusnotification.plan.queue.concurrentConsumersCount

tibco.aff.oms.statusNotification.planItem.queue

Plan Item Status Notification Queue.com.tibco.af.oms.statusnotification.planItem.queue

6Plan Item Status Notification QueueConcurrent Listener Count.

com.tibco.af.oms.statusnotification.planItem.queue.concurrentConsumersCount

tibco.aff.oms.statusNotification.orderAmendment.queue

Order Amendment StatusNotification Queue.

com.tibco.af.oms.statusnotification.orderAmendment.queue

1Order Amendment StatusNotification Queue ConcurrentListener Count.

com.tibco.af.oms.statusnotification.orderAmendment.queue.concurrentConsumersCount

tibco.aff.oms.statusNotification.dead.queue

Status Notification Dead Queue.com.tibco.af.oms.statusnotification.dead.queue

tibco.aff.centrallog.queueCentral Log Queue.com.tibco.af.oms.centrallog.queue

1Central Log Queue ConcurrentListener Count.

com.tibco.af.oms.centrallog.queue.concurrentConsumersCount

tibco.aff.orchestrator.plan.oms.setSet Plan Queue.com.tibco.af.oms.setplan.queue

3Set Plan Queue Concurrent ListenerCount.

com.tibco.af.oms.setplan.queue.concurrentConsumersCount

tibco.aff.orchestrator.plan.oms.set.dead

Set Plan Dead Queue.com.tibco.af.oms.setplan.dead.queue

tibco.aff.orchestrator.plan.oms.set.reply

Set Plan Response Queue.com.tibco.af.oms.setplan.reply.queue

tibco.aff.oms.planfragmentmodelSet Plan Fragment Model Queue.com.tibco.af.oms.setplanfragmentmodel.queue

1Set Plan Fragment Model QueueConcurrent Listener Count.

com.tibco.af.oms.setplanfragmentmodel.queue.concurrentConsumersCount

tibco.aff.oms.planfragmentmodel.deadSet Plan Fragment Model DeadQueue.

com.tibco.af.oms.setplanfragmentmodel.dead.queue

tibco.aff.oms.setplanitemSet Plan Item Queue.com.tibco.af.oms.setplanitem.queue

1Set Plan Item Queue ConcurrentListener Count.

com.tibco.af.oms.setplanitem.queue.concurrentConsumersCount

1Synchronous Order SubmissionStatus Recovery Consumer Count.

com.tibco.af.oms.orderService.syncOrderStatusRecovery.concurrentConsumersCount

tibco.aff.oms.syncorderstatusrecovery

Synchronous Order SubmissionStatus Recovery Queue.

com.tibco.af.oms.orderService.syncOrderStatusRecovery.queue

tibco.aff.oms.setplanitem.deadSet Plan Item Dead Queue.com.tibco.af.oms.setplanitem.dead.queue

tibco.aff.oms.orderServiceQueue for receiving SOAP Over JMSOrder Service requests.

com.tibco.af.oms.ordersService.queue

1Minimum number of concurrentconsumers for listener (default 1).

com.tibco.af.oms.webservice.soap.jms.concurrentConsumers

TIBCO® Fulfillment Order Management User's Guide

288 | Global Variables

Default ValueDescriptionName

5Maximum number of concurrentconsumers for listener (default 1).

com.tibco.af.oms.webservice.soap.jms.maxConcurrentConsumers

tibco.aff.oms.planItem.milestone.notify.request

Milestone Notify Request Queue.com.tibco.af.oms.milestone.notify.request.queue

3Milestone Notify Request QueueConcurrent Listener Count.

com.tibco.af.oms.milestone.notify.request.queue.concurrentConsumersCount

tibco.aff.orchestrator.oms.planItem.milestone.notify.request.dead

Milestone Notify Request DeadQueue.

com.tibco.af.oms.milestone.notify.request.dead.queue

tibco.aff.oms.planItem.milestone.release.request

Milestone Release Request Queue.com.tibco.af.oms.milestone.release.request.queue

3Milestone Release Request QueueConcurrent Listener Count.

com.tibco.af.oms.milestone.release.request.queue.concurrentConsumersCount

tibco.aff.orchestrator.oms.planItem.milestone.release.request.dead

Milestone Release Request DeadQueue.

com.tibco.af.oms.milestone.release.request.dead.queue

tibco.aff.oms.events.jeopardy.updateJeopardy Events Update Queue.com.tibco.af.oms.events.jeopardy.update.queue

1Jeopardy Events Update QueueConcurrent Listener Count.

com.tibco.af.oms.events.jeopardy.update.queue.concurrentConsumersCount

com.tibco.aff.deadJeopardy Events Update DeadQueue.

com.tibco.af.oms.events.jeopardy.update.dead.queue

com.tibco.aff.deadAFF Dead Queue.com.tibco.af.dead.queue

1Purge Order Reply Queue forOrchestrator Concurrent ListenerCount.

com.tibco.af.oms.router.destination.beoPurgeOrder.reply.queue.concurrentConsumersCount

tibco.aff.oms.plan.migrated.requestEnrich Migrated Plan RequestQueue.

com.tibco.af.oms.plan.migrated.request

tibco.aff.oms.plan.migrated.responseEnrich Migrated Plan ResponseQueue.

com.tibco.af.oms.plan.migrated.response

30000Enrich Migrated Plan Timeout.com.tibco.af.oms.migratedPlanTimeOut

tibco.aff.oms.jeoms.update.ruleUpdate Jeopardy Configuration RuleQueue.

com.tibco.af.oms.jeoms.update.rule

3Maximum number of times theStatus Message to be retried.

com.tibco.af.oms.statusmessage.max.redeliveries

3000Interval delay in millisecs betweenStatus Message retries.

com.tibco.af.oms.statusmessage.redelivery.delay

30000Maximum delay in millisecs ForStatus Message retries.

com.tibco.af.oms.statusmessage.max.redelivery.delay

FALSEUse Exponential backoff For StatusMessage retries.

com.tibco.af.oms.statusmessage.useExponentialBackOff

2Exponential backoff Multiplier ForStatus Message retries.

com.tibco.af.oms.statusmessage.exponentialBackOffMultiplier

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 289

Default ValueDescriptionName

FALSELog retry attempt For StatusMessage retries.

com.tibco.af.oms.statusmessage.logRetryAttempted

FALSELog retry failed stacktrace For StatusMessage retries.

com.tibco.af.oms.statusmessage.logStackTrace

passthroughRouterRouter Type.com.tibco.af.oms.router.type

tibco.aff.orchestrator.order.withdraw

Withdraw Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoWithdrawOrder

tibco.aff.orchestrator.order.submitResponse

Submit Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoSubmitOrderReply

30000Request time out for synchronousorder submission.

com.tibco.af.oms.syncSubmitOrderRequestTimeout

tibco.aff.orchestrator.order.submitSubmit Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoSubmitOrder

tibco.aff.orchestrator.order.submitAmend Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoAmendOrder

tibco.aff.orchestrator.order.submitCancel Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoCancelOrder

tibco.aff.orchestrator.order.activate

Resume Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoResumeOrder

tibco.aff.orchestrator.order.suspendSuspend Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoSuspendOrder

tibco.aff.orchestrator.data.order.delete.request

Purge Order Request Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoPurgeOrder

tibco.aff.orchestrator.data.order.delete.reply

Purge Order Reply Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoPurgeOrder.reply

../../routerRecoveryFileFolderPath to folder containing RouterRecovery Files.

com.tibco.af.oms.router.recoveryFileFolderPath

filteringRouterRouter Type.com.tibco.af.oms.router.type

tibco.aff.orchestrator.order.submitResponse

Submit Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoSubmitOrderReply

30000Request time out for synchronousorder submission.

com.tibco.af.oms.syncSubmitOrderRequestTimeout

/SubmitOrderRequest/orderRequest/header/udf[name='Orchestrator']/value/text()

Xpath filter Condition.com.tibco.af.oms.router.filterCondition

tibco.aff.orchestrator.order.submitSubmit Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoSubmitOrder

tibco.aff.ipc.order.submitSubmit Order Queue for IPC.com.tibco.af.oms.router.destination.ipcSubmitOrder

tibco.aff.orchestrator.order.withdraw

Withdraw Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoWithdrawOrder

TIBCO® Fulfillment Order Management User's Guide

290 | Global Variables

Default ValueDescriptionName

tibco.aff.ipc.order.withdrawWithdraw Order Queue for iPC.com.tibco.af.oms.router.destination.ipcWithdrawOrder

tibco.aff.ipc.order.submitResponseSubmit Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.ipcSubmitOrderReply

tibco.aff.orchestrator.order.submitAmend Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoAmendOrder

tibco.aff.ipc.order.amendAmend Order Queue for IPC.com.tibco.af.oms.router.destination.ipcAmendOrder

tibco.aff.orchestrator.order.submitCancel Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoCancelOrder

tibco.aff.ipc.order.submitCancel Order Queue for iPC.com.tibco.af.oms.router.destination.ipcCancelOrder

tibco.aff.orchestrator.order.activate

Resume Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoResumeOrder

tibco.aff.ipc.order.activateResume Order Queue for iPC.com.tibco.af.oms.router.destination.ipcResumeOrder

tibco.aff.orchestrator.order.suspendSuspend Order Queue forOrchestrator.

com.tibco.af.oms.router.destination.beoSuspendOrder

tibco.aff.ipc.order.suspendSuspend Order Queue for iPC.com.tibco.af.oms.router.destination.ipcSuspendOrder

../../routerRecoveryFileFolderPath to folder containing RouterRecovery Files.

com.tibco.af.oms.router.recoveryFileFolderPath

org.hibernate.dialect.Oracle10gDialect

com.tibco.af.oms.hibernate.dialect

FALSEHibernate Second Level CacheUsage.

com.tibco.af.oms.hibernate.cache.use_second_level_cache

org.hibernate.cache.NoCacheProviderHibernate Cache Provider Class.com.tibco.af.oms.hibernate.cache.provider_class

org.hibernate.transaction.JDBCTransactionFactory

Hibernate Transaction Factory Class.com.tibco.af.oms.hibernate.transaction.factory_class

threadHibernate Session Context Class.com.tibco.af.oms.hibernate.current_session_context_class

30Hibernate JDBC Batch size.com.tibco.af.oms.hibernate.jdbc.batch_size

FALSEHibernate Show SQL.com.tibco.af.oms.hibernate.show_sql

aff_omsHibernate Default Catalog.com.tibco.af.oms.hibernate.default_catalog

aff_oms_archiveHibernate Default Archive Catalog.com.tibco.af.oms.hibernate.default_archive_catalog

com.tibco.af.omsui.httpChannelType

8080com.tibco.af.omsui.http.port

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 291

Default ValueDescriptionName

8443com.tibco.af.omsui.https.port

TRUEEnable the Record count fetch forpagination. This will make the data

com.tibco.af.omsui.enableRecordCountFetch

fetch slower and enable Last Pageoption in pagination.

com.tibco.af.omsui.session-fixation-protection

localhostHost address of the OMS server.com.tibco.af.omsServer.proxyHost

TRUEEnable FP configuration.com.tibco.af.fpServer.enableConfiguration

knodeNode name of the FP server.com.tibco.af.fpServer.nodeName

localhostHost address of the FP server.com.tibco.af.fpServer.proxyHost

FPOwner for FP.com.tibco.af.fpServer.fpPlanFragmentType

8080Port number of the OMS Server.com.tibco.af.omsServer.proxyPort

8080Port number of the FP Server.com.tibco.af.fpServer.proxyPort

1com.tibco.af.concurrencyControl.maxSessionPerUser

Month[MM] and Year [yyyy])OMS UI Short Date Format (Day[dd].

com.tibco.af.omsui.shortDateFormat

Month [MM]OMS UI Long Date Time Format(Day [dd].

com.tibco.af.omsui.longDateFormat

Month [MM]OMS UI Long Date Time Format(Day [dd].

com.tibco.af.omsui.longDateFormatTimeZone

Month [MM]OMS UI Long Date Time Format(Day [dd].

com.tibco.af.omsui.longDateFormatTimeZoneMillis

{PlanItemID}OMS UI PlanItem Display Templatefor Grid View. Possible template

com.tibco.af.omsui.planItemExpression.gridView

variables are - PlanItemID,PlanFragmentID, ProductID, Actionand Description; these templatevariables are case sensitive and haveto be specified within curly braces{}. Different template variables canbe combined with any type ofdelimiter e.g.{PlanFragmentID}|{PlanItemID}.

{Description}OMS UI PlanItem Display Templatefor Gantt View. Possible template

com.tibco.af.omsui.planItemExpression.ganttView

variables are - PlanItemID,PlanFragmentID,ProductID, Actionand Description; these templatevariables are case sensitive and haveto be specified within curly braces{}. Different template variables canbe combined with any type of

TIBCO® Fulfillment Order Management User's Guide

292 | Global Variables

Default ValueDescriptionName

delimiter e.g.{PlanFragmentID}|{PlanItemID}.

{Description}|{PlanItemID}OMS UI PlanItem Display Templatefor Dependency View. Possible

com.tibco.af.omsui.planItemExpression.dependencyView

template variables are - PlanItemID,PlanFragmentID, ProductID, Actionand Description; these templatevariables are case sensitive and haveto be specified within curly braces{}. Different template variables canbe combined with any type ofdelimiter e.g.{PlanFragmentID}|{PlanItemID}"name="PlanItem Template forDependency View.

4Purge Thread Count.com.tibco.af.purge.threads.count

FALSEPublishInventoryNotifications.com.tibco.aff.PublishInventoryNotifications

tibco.aff.ocv.publish.inventory.assignitem

AssignInventoryItem publish topic.publish.assigninventoryitem

tibco.aff.ocv.publish.inventory.removeitem

RemoveInventoryItem publish topic.publish.removeinventoryitem

tibco.aff.ocv.publish.inventory.updateitem

UpdateInventoryItem publish topic.publish.updateinventoryitem

tibco.aff.ocv.publish.inventory.reassignitem

ReassignInventoryItem publishtopic.

publish.reassigninventoryitem

tibco.aff.ocv.publish.inventory.rollbackitem

RollbackInventoryItem publishtopic.

publish.rollbackinventoryitem

tibco.aff.catalog.product.requestProduct model receiver queue.com.tibco.fom.oms.afi.productmodel.receiver.queue

3Product model receiver count.com.tibco.fom.oms.afi.productmodel.receiver.count

tibco.aff.ocv.events.products.publish

Product model publish topic.com.tibco.fom.oms.afi.productmodel.publish.topic

tibco.aff.catalog.customer.requestCustomer model receiver queue.com.tibco.fom.oms.afi.customermodel.receiver.queue

3Customer model receiver count.com.tibco.fom.oms.afi.customermodel.receiver.count

tibco.aff.ocv.events.customers.publish

Customer model publish topic.com.tibco.fom.oms.afi.customermodel.publish.topic

tibco.aff.catalog.segment.requestSegment model receiver queue.com.tibco.fom.oms.afi.segmentmodel.receiver.queue

3Segment model receiver count.com.tibco.fom.oms.afi.segmentmodel.receiver.count

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 293

Default ValueDescriptionName

tibco.aff.ocv.events.segment.set.request

Segment model sender queue.com.tibco.fom.oms.afi.segmentmodel.sender.queue

tibco.aff.catalog.planfragment.request

PlanFragment model receiver queue.com.tibco.fom.oms.afi.planfragmentmodel.receiver.queue

3PlanFragment model receiver count.com.tibco.fom.oms.afi.planfragmentmodel.receiver.count

tibco.aff.orchestrator.model.processComponent.pub

ProcessComponent model publishtopic.

com.tibco.fom.oms.afi.planfragmentmodel.publish.topic

tibco.aff.catalog.action.requestAction model receiver queue.com.tibco.fom.oms.afi.actionmodel.receiver.queue

3Action model receiver count.com.tibco.fom.oms.afi.actionmodel.receiver.count

tibco.aff.ocv.events.actions.publishAction model publish topic.com.tibco.fom.oms.afi.actionmodel.publish.topic

tibco.aff.catalog.events.requestProduct customer segment modelinvocation event request receiverqueue.

com.tibco.fom.oms.afi.pcsmodel.event.request.queue

1Product customer segment modelinvocation event request receivercount.

com.tibco.fom.oms.afi.pcsmodel.event.receiver.count

tibco.aff.orchestrator.startup.event.request

Plan fragment model invocationevent request receiver queue.

com.tibco.fom.oms.afi.pfmodel.event.request.queue

1Plan fragment model invocationevent request receiver count.

com.tibco.fom.oms.afi.pfmodel.event.request.receiver.count

localhostServer host.com.tibco.fom.oms.afi.fcintegration.host

8800Server port.com.tibco.fom.oms.afi.fcintegration.port

ACEnterprise name.com.tibco.fom.oms.afi.fcintegration.enterprise

adminUsername.com.tibco.fom.oms.afi.fcintegration.username

adminPassword.com.tibco.fom.oms.afi.fcintegration.password

SVC-11045Workflow invocation responsesuccess code.

com.tibco.fom.oms.afi.fcintegration.workflow.response.success.code

Workflow initiated successfully.Workflow invocation responsesuccess message.

com.tibco.fom.oms.afi.fcintegration.workflow.response.success.message

PRODUCTMaster catalog name.com.tibco.fom.oms.afi.fcintegration.product.mctname

BU_000001Product record ID.com.tibco.fom.oms.afi.fcintegration.product.id

TIBCO® Fulfillment Order Management User's Guide

294 | Global Variables

Default ValueDescriptionName

Product record ID extension.com.tibco.fom.oms.afi.fcintegration.product.idext

PARTYMaster catalog name.com.tibco.fom.oms.afi.fcintegration.customer.mctname

68000001Customer record ID.com.tibco.fom.oms.afi.fcintegration.customer.id

Customer record ID extension.com.tibco.fom.oms.afi.fcintegration.customer.idext

SEGMENTMaster catalog name.com.tibco.fom.oms.afi.fcintegration.segment.mctname

PB_000001Segment record ID.com.tibco.fom.oms.afi.fcintegration.segment.id

Segment record ID extension.com.tibco.fom.oms.afi.fcintegration.segment.idext

PLANFRAGMENTMaster catalog name.com.tibco.fom.oms.afi.fcintegration.planfragment.mctname

PF_00001PlanFragment record ID.com.tibco.fom.oms.afi.fcintegration.planfragment.id

PlanFragment record ID extension.com.tibco.fom.oms.afi.fcintegration.planfragment.idext

ACTIONMaster catalog name.com.tibco.fom.oms.afi.fcintegration.action.mctname

ProvideAction record ID.com.tibco.fom.oms.afi.fcintegration.action.id

Action record ID extension.com.tibco.fom.oms.afi.fcintegration.action.idext

60Polling interval in seconds.com.tibco.fom.oms.afi.offline.common.polling.interval

30Catalog request interval inmilliseconds.

com.tibco.fom.oms.afi.offline.common.catalogrequest.interval

FALSEUse offline product.com.tibco.fom.oms.afi.offline.product.use

/usr/tibco/product/masterOffline product catalog masterdirectory.

com.tibco.fom.oms.afi.offline.product.master.directory

/usr/tibco/product-success/masterOffline product catalog importsuccess master directory.

com.tibco.fom.oms.afi.offline.product.master.importsuccess.directory

/usr/tibco/product-failure/masterOffline product catalog importfailure master directory.

com.tibco.fom.oms.afi.offline.product.master.importfailure.directory

/usr/tibco/productOffline product catalog directory.com.tibco.fom.oms.afi.offline.product.directory

/usr/tibco/product-successOffline product catalog importsuccess directory.

com.tibco.fom.oms.afi.offline.product.importsuccess.directory

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 295

Default ValueDescriptionName

/usr/tibco/product-failureOffline product catalog importfailure directory.

com.tibco.fom.oms.afi.offline.product.importfailure.directory

FALSEUse offline customer.com.tibco.fom.oms.afi.offline.customer.use

/usr/tibco/customer/masterOffline customer catalog masterdirectory.

com.tibco.fom.oms.afi.offline.customer.master.directory

/usr/tibco/customer-success/masterOffline customer catalog importsuccess master directory.

com.tibco.fom.oms.afi.offline.customer.master.importsuccess.directory

/usr/tibco/customer-failure/masterOffline customer catalog importfailure master directory.

com.tibco.fom.oms.afi.offline.customer.master.importfailure.directory

/usr/tibco/customerOffline customer catalog directory.com.tibco.fom.oms.afi.offline.customer.directory

/usr/tibco/customer-successOffline customer catalog importsuccess directory.

com.tibco.fom.oms.afi.offline.customer.importsuccess.directory

/usr/tibco/customer-failureOffline customer catalog importfailure directory.

com.tibco.fom.oms.afi.offline.customer.importfailure.directory

FALSEUse offline segment.com.tibco.fom.oms.afi.offline.segment.use

/usr/tibco/segment/masterOffline segment catalog masterdirectory.

com.tibco.fom.oms.afi.offline.segment.master.directory

/usr/tibco/segment-success/masterOffline segment catalog importsuccess master directory.

com.tibco.fom.oms.afi.offline.segment.master.importsuccess.directory

/usr/tibco/segment-failure/masterOffline segment catalog importfailure master directory.

com.tibco.fom.oms.afi.offline.segment.master.importfailure.directory

/usr/tibco/segmentOffline segment catalog directorycom.tibco.fom.oms.afi.offline.segment.directory

/usr/tibco/segment-successOffline segment catalog importsuccess directory.

com.tibco.fom.oms.afi.offline.segment.importsuccess.directory

/usr/tibco/segment-failureOffline segment catalog importfailure directory.

com.tibco.fom.oms.afi.offline.segment.importfailure.directory

FALSEUse offline planfragment.com.tibco.fom.oms.afi.offline.planfragment.use

/usr/tibco/planfragment/masterOffline planfragment catalog masterdirectory.

com.tibco.fom.oms.afi.offline.planfragment.master.directory

/usr/tibco/planfragment-success/master

Offline planfragment catalog importsuccess master directory.

com.tibco.fom.oms.afi.offline.planfragment.master.importsuccess.directory

/usr/tibco/planfragment-failure/master

Offline planfragment catalog importfailure master directory.

com.tibco.fom.oms.afi.offline.planfragment.master.importfailure.directory

/usr/tibco/planfragmentOffline planfragment catalogdirectory.

com.tibco.fom.oms.afi.offline.planfragment.directory

/usr/tibco/planfragment-successOffline planfragment catalog importsuccess directory.

com.tibco.fom.oms.afi.offline.planfragment.importsuccess.directory

TIBCO® Fulfillment Order Management User's Guide

296 | Global Variables

Default ValueDescriptionName

/usr/tibco/planfragment-failureOffline planfragment catalog importfailure directory.

com.tibco.fom.oms.afi.offline.planfragment.importfailure.directory

FALSEUse offline action.com.tibco.fom.oms.afi.offline.action.use

/usr/tibco/action/masterOffline action catalog masterdirectory.

com.tibco.fom.oms.afi.offline.action.master.directory

/usr/tibco/action-success/masterOffline action catalog import successmaster directory.

com.tibco.fom.oms.afi.offline.action.master.importsuccess.directory

/usr/tibco/action-failure/masterOffline action catalog import failuremaster directory.

com.tibco.fom.oms.afi.offline.action.master.importfailure.directory

/usr/tibco/actionOffline action catalog directory.com.tibco.fom.oms.afi.offline.action.directory

/usr/tibco/action-successOffline action catalog import successdirectory.

com.tibco.fom.oms.afi.offline.action.importsuccess.directory

/usr/tibco/action-failureOffline action catalog import failuredirectory.

com.tibco.fom.oms.afi.offline.action.importfailure.directory

tibco.aff.orchestrator.provider.order.opd.request

OPDRequest from Orchestratorreceiver queue.

com.tibco.fom.oms.afi.orch.opdrequest.receiver.queue

3OPDRequest from Orchestratorreceiver count.

com.tibco.fom.oms.afi.orch.opdrequest.receiver.count

tibco.aff.ocv.events.plan.new.request

ExecutionPlanNewRequest to AOPDsender queue.

com.tibco.fom.oms.afi.aopd.newplanrequest.sender.queue

tibco.aff.ocv.events.plan.amend.request

ExecutionPlanAmendRequest toAOPD sender queue.

com.tibco.fom.oms.afi.aopd.amendplanrequest.sender.queue

tibco.aff.ocv.events.newplan.replyExecutionPlanNewResponse fromAOPD receiver queue.

com.tibco.fom.oms.afi.aopd.newplanresponse.receiver.queue

3ExecutionPlanNewResponse fromAOPD receiver count.

com.tibco.fom.oms.afi.aopd.newplanresponse.receiver.count

tibco.aff.ocv.events.amendplan.replyExecutionPlanAmendResponse fromAOPD receiver queue.

com.tibco.fom.oms.afi.aopd.amendplanresponse.receiver.queue

3ExecutionPlanAmendResponse fromAOPD receiver count.

com.tibco.fom.oms.afi.aopd.amendplanresponse.receiver.count

tibco.aff.orchestrator.provider.order.opd.reply

OPDResponse to Orchestratorsender queue.

com.tibco.fom.oms.afi.orch.opdresponse.sender.queue

FALSEMerge inventory in AOPD request.com.tibco.fom.oms.afi.aopd.merge.inventory

tibco.aff.tds.order.read.requestGetOrderRequest receiver queue.com.tibco.fom.oms.tds.getorderrequest.receiver.queue

3GetOrderRequest receiver count.com.tibco.fom.oms.tds.getorderrequest.receiver.count

tibco.aff.oms.tds.order.read.request.dead

GetOrderRequest receiver deadqueue.

com.tibco.fom.oms.tds.getorderrequest.receiver.deadqueue

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 297

Default ValueDescriptionName

tibco.aff.tds.order.replyGetOrderResponse sender queue.com.tibco.fom.oms.tds.getorderresponse.sender.queue

tibco.aff.tds.plan.read.requestGetPlan/GetPlanItem Requestreceiver queue.

com.tibco.fom.oms.tds.getplanrequest.receiver.queue

3GetPlan/GetPlanItem Requestreceiver count.

com.tibco.fom.oms.tds.getplanrequest.receiver.count

tibco.aff.oms.tds.plan.read.request.dead

GetPlan/GetPlanItem Requestreceiver dead queue.

com.tibco.fom.oms.tds.getplanrequest.receiver.deadqueue

tibco.aff.tds.plan.replyGetPlan/GetPlanItem Responsesender queue.

com.tibco.fom.oms.tds.getplanresponse.sender.queue

tibco.aff.tds.plan.requestSetPlan/SetPlanItem Requestreceiver queue.

com.tibco.fom.oms.tds.setplanrequest.receiver.queue

3SetPlan/SetPlanItem Requestreceiver count.

com.tibco.fom.oms.tds.setplanrequest.receiver.count

tibco.aff.oms.tds.plan.request.deadSetPlan/SetPlanItem Requestreceiver dead queue.

com.tibco.fom.oms.tds.setplanrequest.receiver.deadqueue

tibco.aff.tds.plan.replySetPlan/SetPlanItem Responsesender queue.

com.tibco.fom.oms.tds.setplanresponse.sender.queue

TRUEFlag to enable unique UDF names topermit updates on UDF values.

com.tibco.fom.oms.tds.enable.unique.udfname

60000Wait Timeout for listening toresponse from JMS Destination.

com.tibco.afs.destination.listen.timeout

tibco.aff.ocv.events.inventory.assignitem.request

AssignInventory request queue.tibco.aff.ocv.events.inventory.assignitem.request

tibco.aff.ocv.events.inventory.assignitem.response

Destination where assignInventoryresponse is posted.

tibco.aff.ocv.events.inventory.assignitem.response

tibco.aff.ocv.events.inventory.getitem.request

Queue where the getItem request isposted.

tibco.aff.ocv.events.inventory.getitem.request

tibco.aff.ocv.events.inventory.getitem.response

Queue where the getItem reponse isposted.

tibco.aff.ocv.events.inventory.getitem.response

tibco.aff.ocv.events.inventory.getitems.request

Queue where the getItems requestis posted.

tibco.aff.ocv.events.inventory.getitems.request

tibco.aff.ocv.events.inventory.getitems.response

Queue where the getItems reponseis posted.

tibco.aff.ocv.events.inventory.getitems.response

tibco.aff.ocv.events.inventory.removeitem.request

Queue where the removeItemrequest is posted.

tibco.aff.ocv.events.inventory.removeitem.request

tibco.aff.ocv.events.inventory.removeitem.response

Queue where the removeItemreponse is posted.

tibco.aff.ocv.events.inventory.removeitem.response

tibco.aff.ocv.events.inventory.rollbackitem.request

Queue where the rollbackItemrequest is posted.

tibco.aff.ocv.events.inventory.rollbackitem.request

TIBCO® Fulfillment Order Management User's Guide

298 | Global Variables

Default ValueDescriptionName

tibco.aff.ocv.events.inventory.rollbackitem.response

Queue where the rollbackItemresponse is posted.

tibco.aff.ocv.events.inventory.rollbackitem.response

tibco.aff.ocv.events.inventory.reassignitem.request

Queue where the reassignitemrequest is posted.

tibco.aff.ocv.events.inventory.reassignitem.request

tibco.aff.ocv.events.inventory.reassignitem.response

Queue where the reassignitemresponse is posted.

tibco.aff.ocv.events.inventory.reassignitem.response

tibco.aff.ocv.events.inventory.updateitem.request

Queue where the updateitem requestis posted.

tibco.aff.ocv.events.inventory.updateitem.request

tibco.aff.ocv.events.inventory.updateitem.response

Queue where the updateitemresponse is posted.

tibco.aff.ocv.events.inventory.updateitem.response

tibco.aff.ocv.events.inventory.setuserstatus.request

Queue where the setuserstatusrequest is posted.

tibco.aff.ocv.events.inventory.setuserstatus.request

tibco.aff.ocv.events.inventory.setuserstatus.response

Queue where the setuserstatusresponse is posted.

tibco.aff.ocv.events.inventory.setuserstatus.response

tibco.aff.ocv.events.inventory.getuserstatus.request

Queue where the getuserstatusrequest is posted.

tibco.aff.ocv.events.inventory.getuserstatus.request

tibco.aff.ocv.events.inventory.getuserstatus.response

Queue where the getuserstatusresponse is posted.

tibco.aff.ocv.events.inventory.getuserstatus.response

tibco.aff.ocv.events.subscriber.set.request

Queue whereCreateSubscriberRequest is posted.

tibco.aff.ocv.events.subscriber.set.request

tibco.aff.ocv.events.subscriber.set.reply

Topic whereCreateSubsriberResponse is posted.

tibco.aff.ocv.events.subscriber.set.reply

tibco.aff.ocv.events.subscriber.remove.request

Queue whereRemoveSubscriberRequest is posted.

tibco.aff.ocv.events.subscriber.remove.request

tibco.aff.ocv.events.subscriber.remove.reply

Queue where the RemoveSubscriberreponse is posted.

tibco.aff.ocv.events.subscriber.remove.reply

tibco.aff.ocv.events.subscriber.get.request

Queue where the getSubscriberrequest is posted.

tibco.aff.ocv.events.subscriber.get.request

tibco.aff.ocv.events.subscriber.get.reply

Queue where the getSubscriberreponse is posted.

tibco.aff.ocv.events.subscriber.get.reply

tibco.aff.ocv.events.customer.hierarchy.get.request

Queue where request forCustomerHierarchy is posted.

tibco.aff.ocv.events.customer.hierarchy.get.request

tibco.aff.ocv.events.customer.hierarchy.get.reply

Topic where CustomerHierarchyresponse is posted.

tibco.aff.ocv.events.customer.hierarchy.get.reply

tibco.aff.ocv.events.customer.get.request

Queue where request forCustomerImage is posted.

tibco.aff.ocv.events.customer.get.request

tibco.aff.ocv.events.customer.get.reply

Topic where the CustomerImagereponse is posted.

tibco.aff.ocv.events.customer.get.reply

tibco.aff.ocv.events.customer.eligibleproducts.get.request

Queue where request for gettingcustomer's eligible products isposted.

tibco.aff.ocv.events.customer.eligibleproducts.get.request

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 299

Default ValueDescriptionName

tibco.aff.ocv.events.customer.eligibleproducts.get.reply

Topic where customer's eligibleproduct response is posted.

tibco.aff.ocv.events.customer.eligibleproducts.get.reply

tibco.aff.ocv.events.subscriber.eligibleproducts.get.request

Queue where request for gettingsubscriber's eligible products isposted.

tibco.aff.ocv.events.subscriber.eligibleproducts.get.request

tibco.aff.ocv.events.subscriber.eligibleproducts.get.reply

Topic where subscriber's eligibleproduct response is posted.

tibco.aff.ocv.events.subscriber.eligibleproducts.get.reply

tibco.aff.ocv.events.product.get.request

Queue where request for gettingproduct information is posted.

tibco.aff.ocv.events.product.get.request

tibco.aff.ocv.events.product.get.reply

Topic where product informationresponse is posted.

tibco.aff.ocv.events.product.get.reply

tibco.aff.ocv.events.subscriber.ineligible.get.request

Queue where request for gettingineligible subscribers information isposted.

tibco.aff.ocv.events.subscriber.ineligible.get.request

tibco.aff.ocv.events.subscriber.ineligible.get.reply

Topic where ineligible subscriberinformation response is posted.

tibco.aff.ocv.events.subscriber.ineligible.get.reply

tibco.aff.ocv.events.segment.get.request

Queue where request for gettingsegment information is posted.

tibco.aff.ocv.events.segment.get.request

tibco.aff.ocv.events.segment.get.reply

Topic where segment informationresponse is posted.

tibco.aff.ocv.events.segment.get.reply

tibco.aff.ocv.events.offer.validate.request

Queue where request for validatingthe offer is posted.

tibco.aff.ocv.events.offer.validate.request

tibco.aff.ocv.events.offer.validate.reply

Topic where response of offervalidation is posted.

tibco.aff.ocv.events.offer.validate.reply

tibco.aff.ocv.events.offer.price.request

Queue where request for gettingoffer price is posted.

tibco.aff.ocv.events.offer.price.request

tibco.aff.ocv.events.offer.price.reply

Topic where offer price informationis posted.

tibco.aff.ocv.events.offer.price.reply

GenericConnectionFactoryJNDI Connection factory JNDIName.

com.tibco.af.oms.jms.jndi.ConnectionFactory

com.tibco.tibjms.naming.TibjmsInitialContextFactory

JNDI Initial Context Factory.com.tibco.af.oms.jms.jndi.initialContextFactory

tibjmsnaming://localhost:7222JNDI URL for JMS Service.com.tibco.af.oms.jms.jndi.url

adminJNDI Username.com.tibco.af.oms.jms.jndi.security.principal

adminJNDI Password.com.tibco.af.oms.jms.jndi.security.credentials

QueueConnectionFactoryBE Orchestrator Queue Connectionfactory JNDI Name.

com.tibco.af.oms.jms.jndi.cf.beo

1BE Orchestrator JMS Delivery Mode.com.tibco.af.oms.jms.cf.beo.deliverymode

FALSEBE Orchestrator JMS QoS Enabled?com.tibco.af.oms.jms.cf.beo.qosEnabled

TIBCO® Fulfillment Order Management User's Guide

300 | Global Variables

Default ValueDescriptionName

GenericConnectionFactoryIPC Queue Connection factory JNDIName.

com.tibco.af.oms.jms.jndi.cf.ipc

1IPC JMS Delivery Mode.com.tibco.af.oms.jms.cf.ipc.deliverymode

FALSEIPC IPC JMS JMS QoS Enabled.com.tibco.af.oms.jms.cf.ipc.qosEnabled

QueueConnectionFactoryOCV Queue Connection factoryJNDI Name.

com.tibco.af.oms.jms.jndi.cf.ocv

1OCV JMS Delivery Mode.com.tibco.af.oms.jms.cf.ocv.deliverymode

TRUEOCV JMS JMS QoS Enabled.com.tibco.af.oms.jms.cf.ocv.qosEnabled

oracle.jdbc.driver.OracleDriverPooled Data Source Driver ClassName.

com.tibco.af.oms.pooledDataSource.driverClassName

localhostPooled Data Source Host.com.tibco.af.oms.pooledDataSource.host

1521Pooled Data Source Port.com.tibco.af.oms.pooledDataSource.port

orclPooled Data Source Database.com.tibco.af.oms.pooledDataSource.database

aff_omsPooled Data Source Username.com.tibco.af.oms.pooledDataSource.username

aff_omsPooled Data Source Password.com.tibco.af.oms.pooledDataSource.password

jdbc:oracle:thin:@//${com.tibco.af.oms.pooledDataSource.host}:${com.

tibco.af.oms.pooledDataSource.

Pooled Data Source URL.com.tibco.af.oms.pooledDataSource.url

port}/${com.tibco.af.oms.

pooledDataSource.database}

2Pooled Data Source Initialize Size.com.tibco.af.oms.pooledDataSource.initializeSize

8Pooled Data Source Max Idle.com.tibco.af.oms.pooledDataSource.maxIdle

12Pooled Data Source Max Active.com.tibco.af.oms.pooledDataSource.maxActive

10000Pooled Data Source Max Wait.com.tibco.af.oms.pooledDataSource.maxWait

select 1 from dualPooled Data Source ValidationQuery.

com.tibco.af.oms.pooledDataSource.validationQuery

FALSEPooled Data Source Test OnBorrow.com.tibco.af.oms.pooledDataSource.testOnBorrow

TRUEPooled Data Source Test WhileIdle.com.tibco.af.oms.pooledDataSource.testWhileIdle

1200000Pooled Data Source EvictionInterval.

com.tibco.af.oms.pooledDataSource.timeBetweenEvictionRunsMillis

1800000Pooled Data Source MinimumEvictable Idle Time.

com.tibco.af.oms.pooledDataSource.minEvictableIdleTimeMillis

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 301

Default ValueDescriptionName

5Pooled Data Source Tests PerEviction Run.

com.tibco.af.oms.pooledDataSource.numTestsPerEvictionRun

FALSEPooled Data Source DefaultAutoCommit.

com.tibco.af.oms.pooledDataSource.defaultAutoCommit

oracle.jdbc.driver.OracleDriverPooled Data Source Driver ClassName.

com.tibco.af.oms.pooledArchiveDataSource.driverClassName

localhostPooled Data Source Host.com.tibco.af.oms.pooledArchiveDataSource.host

1521Pooled Data Source Port.com.tibco.af.oms.pooledArchiveDataSource.port

orclPooled Data Source Database.com.tibco.af.oms.pooledArchiveDataSource.database

aff_oms_archivePooled Data Source Username.com.tibco.af.oms.pooledArchiveDataSource.username

aff_oms_archivePooled Data Source Password.com.tibco.af.oms.pooledArchiveDataSource.password

jdbc:oracle:thin:@//${com.tibco.af.oms.pooledArchiveDataSource.host}:

${com.tibco.af.oms.

Pooled Data Source URL.com.tibco.af.oms.pooledArchiveDataSource.url

pooledArchiveDataSource.port}/

${com.tibco.af.oms.

pooledArchiveDataSource.database}

2Pooled Data Source Initialize Size.com.tibco.af.oms.pooledArchiveDataSource.initializeSize

8Pooled Data Source Max Idle.com.tibco.af.oms.pooledArchiveDataSource.maxIdle

12Pooled Data Source Max Active.com.tibco.af.oms.pooledArchiveDataSource.maxActive

10000Pooled Data Source Max Wait.com.tibco.af.oms.pooledArchiveDataSource.maxWait

select 1 from dualPooled Data Source ValidationQuery.

com.tibco.af.oms.pooledArchiveDataSource.validationQuery

FALSEPooled Data Source Test OnBorrow.com.tibco.af.oms.pooledArchiveDataSource.testOnBorrow

TRUEPooled Data Source Test WhileIdle.com.tibco.af.oms.pooledArchiveDataSource.testWhileIdle

1200000Pooled Data Source EvictionInterval.

com.tibco.af.oms.pooledArchiveDataSource.timeBetweenEvictionRunsMillis

1800000Pooled Data Source MinimumEvictable Idle Time.

com.tibco.af.oms.pooledArchiveDataSource.minEvictableIdleTimeMillis

TIBCO® Fulfillment Order Management User's Guide

302 | Global Variables

Default ValueDescriptionName

5Pooled Data Source Tests PerEviction Run.

com.tibco.af.oms.pooledArchiveDataSource.numTestsPerEvictionRun

FALSEPooled Data Source DefaultAutoCommit.

com.tibco.af.oms.pooledArchiveDataSource.defaultAutoCommit

defaultAuthenticationProviderDefault Authentication Provider.com.tibco.af.oms.security.authProvider

ldapAuthenticationProviderLdap Authentication Provider.com.tibco.af.oms.security.authProvider

ldap://localhost:389/dc=omsLDAP Server URL.com.tibco.af.oms.security.authProvider.ldap.server.url

uid=adminLDAP User Manager ID.com.tibco.af.oms.security.authProvider.ldap.server.userDn

passwordLDAP User Manager Password.com.tibco.af.oms.security.authProvider.ldap.server.password

ou=usersUser SearchBase.com.tibco.af.oms.security.authProvider.ldap.user.searchBase

(uid={0})User Search Filter.com.tibco.af.oms.security.authProvider.ldap.user.userSearchFilter

ou=GroupsGroup Search Base.com.tibco.af.oms.security.authProvider.ldap.role.groupSearchBase

cnGroup Role Attribute.com.tibco.af.oms.security.authProvider.ldap.role.groupRoleAttribute

uniqueMember={0}Group Search Filter.com.tibco.af.oms.security.authProvider.ldap.role.groupSearchFilter

FALSESeach Sub Tree.com.tibco.af.oms.security.authProvider.ldap.role.searchSubTree

TRUEconvert values To UpperCase.com.tibco.af.oms.security.authProvider.ldap.role.convertToUpperCase

FALSEEnable Offer Configuration andValidation.

com.tibco.af.oms.OCVEnabled

60000Offer Configuration and ValidationTimeout.

com.tibco.af.oms.OCVTimeOut

tibco.aff.ocv.events.offer.validate.request

Offer Configuration and ValidationRequest Queue.

com.tibco.af.oms.ocv.request

tibco.aff.ocv.events.offer.validate.reply.oms

Offer Configuration and ValidationResponse Queue. Specify a differentqueue name for OMS than otherOCV clients.

com.tibco.af.oms.ocv.response

TRUEEnable or disable logging ofexception stack trace in OMS when

com.tibco.af.oms.OCVExceptionLoggingEnabled

Offer Configuration and Validationfails.

TRUEEnable User Name token basedSecurity.

com.tibco.af.oms.webservice.security.userNameTokenBased

TIBCO® Fulfillment Order Management User's Guide

Global Variables | 303

Default ValueDescriptionName

TRUEEnable Schema validation.com.tibco.af.oms.webservice.schema.validation

TRUEEnable Submit Order Web ServiceIdempotency.

com.tibco.af.oms.webservice.idempotency

HTTP Channel type.com.tibco.af.oms.webservice.httpChannelType

8080com.tibco.af.oms.http.port

8443com.tibco.af.oms.https.port

FALSEUse external business transactionIdas business transaction id withinOMS.

com.tibco.af.oms.webservice.useExternalBusinessTransactionId

150000Time out value in millisecond fororder lock.

com.tibco.af.oms.updateToken.timeout

1000Nonce validity time in Milliseconds.com.tibco.af.oms.none.validityWindow

0Delay to be introduced beforepersisting order objects.

com.tibco.af.oms.persistenceDelay

0Delay to be introduced beforevalidating orders.

com.tibco.af.oms.orderValidationDelay

onStatusChangeOrder Summary collection on everyorder status change.

com.tibco.af.oms.summaryDataCollectionMethod

scheduledOrder Summary collection onscheduled interval.

com.tibco.af.oms.summaryDataCollectionMethod

0 0 * * * ?schedule interaval for ordersummary data collection.

com.tibco.af.oms.summaryDataCollection.scheduled.cronExpress

TIBCO® Fulfillment Order Management User's Guide

304 | Global Variables

Glossary

AOPD

Automatic Order Plan Development (AOPD) is a component that generates execution plan based on productmodel and submitted order(s).

Accessed through a JMS event interfaceCache

Cache saves order data in a persistent data store, as well as stores transient order data throughout the orderlifecycle. This component serves order and plan data to client Process Components when requested, andupdates plan data.

Accessed through a JMS event interface.Feasibility Provider

Feasibility Provider (FP) is a component, which analyzes the order to determine if it can be fulfilled. Feasibilitychecking is an optional step in the order lifecycle and it may involve validating the order containing therequired products, physical network capacity checking, or inventory stock level check. The Feasibility Provideris a customer-implemented component because feasibility checking is highly customized to the requirementsof a customer.

Accessed through a JMS event interface.Product Catalog

The Product Catalog component stores the product data model which details relationships between products.It also links products to the associated fulfillment Process Components. The Fulfillment Order ManagementAOPD system accesses the Product Catalog through JMS. The Plan Fragment Model definitions repositoriesdescribing the Process Components are contained within the Product Catalog

Order

An order is a set of items that a customer requests to be fulfilled. Orders consist of a series of order lines, witheach line corresponding to a requested product. Order lines are an abstraction of the work that will be doneas part of the plan, with order lines broadly mapping onto plan items

Plan

A plan is a representation of the tasks to be completed to reach the Fulfillment goal.Plan Item

Plan item is a set of work that must be performed to fulfill an order. Like an order consists of order lines, aplan consists of plan items.

Plan Fragment

A plan fragment is an abstraction of a Process Component that contains configuration information thatOrchestrator requires in order to handle errors and SLA notifications. Plan fragments are optional.

Product Affinity

Product Affinity allows different plan fragment types to be grouped together on the same order. For instance,when two plan items in an execution plan have an Affinity to each other, these two items are grouped togetherand are executed as a single task during provisioning. Product Affinity is specified in the product catalog.

TIBCO® Fulfillment Order Management User's Guide