WebSphere MQ Workflow 3.4.0 Java Generic API Test / Prototyping Tool

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

Test Case Example

/* example 1 */

Agent.Agent
  agentHdl                   1
End

Agent.setLocator
  agentHdl                   1
  locator                    LOC_LOCATOR
End

Agent.getLocator
  agentHdl                   1
  xpValue                    LOC_LOCATOR
End

Agent.setName
  agentHdl                   1
  name                       ""
End

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

Agent.isBound
  agentHdl                   1
  xpValue                    true
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

ProcessTemplateArray.size
  processTemplateArrayHdl           1
  xpValue                           9
End

ExecutionService.queryProcessTemplates
  executionServiceHdl               1
  filter                            "NAME = 'ContainerProcess1'"
  sortCriteria                      null
  threshold                         100
  processTemplateArrayHdl           2
  showAllObjectNames                true
  xpFmcException                    FMC_OK
End

ProcessTemplateArray.size
  processTemplateArrayHdl           2
  xpValue                           1
End

ProcessTemplateArray.getFirstElement
  processTemplateArrayHdl           2
  processTemplateHdl                1
End

ProcessTemplate.name
  processTemplateHdl                1
  xpValue                           "ContainerProcess1"
End

ProcessTemplate.createAndStartInstance
  processTemplateHdl                1
  instanceName                      "A_new_Instance"
  systemGroup                       "FMCGRP"
  system                            "FMCSYS"
  keepName                          false
  processInstanceHdl                1
  CreateNoObj                       1
  xpFmcException                    FMC_OK
End

ExecutionService.queryProcessInstances
  executionServiceHdl               1
  filter                            "NAME LIKE '*'"
  sortCriteria                      "NAME ASC"
  threshold                         100
  processInstanceVectorHdl          1
  showAllObjectNames                true
  xpFmcException                    FMC_OK
End

ExecutionService.logoff
  executionServiceHdl               1
  xpFmcException                    FMC_OK
End