KPSA sample. Iterating through Product Orders using a CES Script File.

KPSA sample. Iterating through Product Orders using a CES Script File.

book

Article ID: KB0087657

calendar_today

Updated On:

Products Versions
TIBCO KPSA - Mobile -
Not Applicable -

Description

Resolution:
Description:
============
Sometimes you might need to loop over all Product Orders of a Service Order in a CommandEval script module instead of doing it in action language. This can be done in two steps, a call code to retrieve all Product / Work Orders from a Service Order and a CommandEval script to loop over the result.

Environment:
===========
TIBCO KPSA Mobile or Broadband 3.5+

Resolution:
==========
The goal is to implement a call code and a CommandEval script file. The callcode will be called in the CommandEval script file before iterating on all Product / Work Orders.

The callcode has the following logic :
1). Get all dataset collection list.
2). Loop through this collection list in order to extract all Product / Work Orders datasets and add them in the POsList or WOsList dataset key.
3). Add those POsList and WOsList new dataset keys in the Service Order dataset

The CommandEval script has the following logic :
1). Write the list of collections on the SODataset (call the call code).
2). Iterate to find all POs depending on the value of POsList or WOsList.

Attachments:
============
preProcessing.ces, ces script file
mycallcode.sdl, sdl file of the callcode source code
mycallcode.soc, soc file of the callcode source code  
mycallcode.act, act file of the callcode source code
mycallcode.dic, dictionary file

Issue/Introduction

KPSA sample. Iterating through Product Orders using a CES Script File.

Attachments

KPSA sample. Iterating through Product Orders using a CES Script File. get_app