WebSphere MQ Workflow 3.4.0 Java Generic API Test / Prototyping Tool

[prev][next][parent][TOC]

Apply API to ALL Objects of an Array - Example

Testcase
/* example 8 */

Agent.Agent
  agentHdl                   1
End 

Agent.setLocator
  agentHdl                   1
  locator                    RMI_LOCATOR
End 

Agent.setName
  agentHdl                   1
  name                       "rmi://fmtc732.ae.boeblingen.ibm.com/WORKFLOW"
End 

Agent.locate
  agentHdl                   1
  systemGroup                "SYS_GRP"
  system                     "FMCSYS"
  executionServiceHdl        1
  xpFmcException             FMC_OK
End 

ExecutionService.logon2
  executionServiceHdl               1 
  userID                            "ADMIN"
  password                          "password"
  sessionMode                       PRESENT_HERE
  absenceIndicator                  NOT_SET
  xpFmcException                    FMC_OK
End 

ExecutionService.queryProcessTemplates
  executionServiceHdl               1 
  filter                            "NAME LIKE '*'"
  sortCriteria                      null
  threshold                         100 
  processTemplateArrayHdl           1 
  showAllObjectNames                true
  xpFmcException                    FMC_OK
End 

ProcessTemplate.name
  processTemplateArrayHdl           1 
End 

ProcessTemplate.createAndStartInstance
  processTemplateArrayHdl           1 
  instanceName                      "Example_8_Instance"
  systemGroup                       "SYS_GRP"
  system                            "FMCSYS"
  keepName                          false
  processInstanceHdl                1
  CreateNoObj                       3 
  xpFmcException                    FMC_OK
End 

ExecutionService.logoff
  executionServiceHdl               1 
  xpFmcException                    FMC_OK
End
 

 
 

Result

MQSeries Workflow 3.2.0 Java Generic API Test Tool (JGATT), Driver v32_63
Test case: k:\fle\example8.dat
Tue Apr 20 18:54:35 CEST 1999 
============================================================================
Operating system:              Windows NT 
Operating system version:      4.0
Operating system architecture: x86 
Java version:                  1.1.6
User account name:             kurtfle 
----------------------------------------------------------------------------
+++> 
============================================================================
===> 
Parsing the input file ...
===> 301 msec 
============================================================================
Agent.Agent
parameter: agentHdl                           = 1 
============================================================================
Agent.setLocator
parameter: agentHdl                           = 1 
parameter: locator                            = RMI_LOCATOR = 5 
============================================================================
Agent.setName
parameter: agentHdl                           = 1 
parameter: name                               = "rmi://fmtc732.ae.boeblingen.ibm.com/WORKFLOW"
============================================================================
Agent.locate
parameter: agentHdl                           = 1 
parameter: systemGroup                        = "SYS_GRP"
parameter: system                             = "FMCSYS"
parameter: executionServiceHdl                = 1 
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
============================================================================
ExecutionService.logon2
parameter: executionServiceHdl                = 1 
parameter: userID                             = "ADMIN"
parameter: password                           = "password"
parameter: sessionMode                        = PRESENT_HERE
parameter: absenceIndicator                   = NOT_SET
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
============================================================================
ExecutionService.queryProcessTemplates
parameter: executionServiceHdl                = 1 
parameter: filter                             = "NAME LIKE '*'"
parameter: sortCriteria                       = null 
parameter: threshold                          = 100 
parameter: processTemplateArrayHdl            = 1 
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
..........Object Names Report...............................................
array size = 9 
0) ContainerProcess_x010
1) ContainerProcess_x012
2) ContainerProcess_x020
3) ContainerProcess_x022
4) ProcessToTestNotifications 
5) ProcessToDelete 
6) ContainerProcess_x030
7) ContainerProcess1 
8) ContainerProcess2 
============================================================================
ProcessTemplate.name
parameter: processTemplateArrayHdl            = 1 
..........ValueReport.......................................................
A ...Refresh() will be applied to each object.
0) AcValue = "ContainerProcess_x010"
1) AcValue = "ContainerProcess_x012"
2) AcValue = "ContainerProcess_x020"
3) AcValue = "ContainerProcess_x022"
4) AcValue = "ProcessToTestNotifications"
5) AcValue = "ProcessToDelete"
6) AcValue = "ContainerProcess_x030"
7) AcValue = "ContainerProcess1"
8) AcValue = "ContainerProcess2"
============================================================================
ProcessTemplate.createAndStartInstance
parameter: processTemplateArrayHdl            = 1 
parameter: instanceName                       = "Example_8_Instance"
parameter: systemGroup                        = "SYS_GRP"
parameter: system                             = "FMCSYS"
parameter: keepName                           = false 
parameter: processInstanceHdl                 = 1 
parameter: createNoObj                        = 3 
..........ValueReport.......................................................
A ...Refresh() will be applied to each object.
0.0) FmcException = none = 0 
0.1) FmcException = none = 0 
0.2) FmcException = none = 0 
1.0) FmcException = none = 0 
1.1) FmcException = none = 0 
1.2) FmcException = none = 0 
2.0) FmcException = none = 0 
2.1) FmcException = none = 0 
2.2) FmcException = none = 0 
3.0) FmcException = none = 0 
3.1) FmcException = none = 0 
3.2) FmcException = none = 0 
4.0) FmcException = none = 0 
4.1) FmcException = none = 0 
4.2) FmcException = none = 0 
5.0) FmcException = none = 0 
5.1) FmcException = none = 0 
5.2) FmcException = none = 0 
6.0) FmcException = none = 0 
6.1) FmcException = none = 0 
6.2) FmcException = none = 0 
7.0) FmcException = none = 0 
7.1) FmcException = none = 0 
7.2) FmcException = none = 0 
8.0) FmcException = none = 0 
8.1) FmcException = none = 0 
8.2) FmcException = none = 0 
============================================================================
ExecutionService.logoff
parameter: executionServiceHdl                = 1 
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
============================================================================
====== Test case ended normally ============================================