/* example 9 */ 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 = 'ContainerProcess_x010'" sortCriteria null threshold 20 processTemplateArrayHdl 1 showAllObjectNames true xpFmcException FMC_OK End ProcessTemplateArray.size processTemplateArrayHdl 1 End ProcessTemplateArray.getFirstElement processTemplateArrayHdl 1 processTemplateHdl 1 End ProcessTemplate.persistentOid processTemplateHdl 1 persistentOidHdl 5 End ExecutionService.persistentProcessTemplate executionServiceHdl 1 persistentOidHdl 5 processTemplateHdl 10 xpFmcException FMC_OK End ProcessTemplate.Name processTemplateHdl 10 xpValue "ContainerProcess_x010" End /* --------------------------------------------- */ ExecutionService.queryProcessTemplates executionServiceHdl 1 filter "NAME LIKE '*'" sortCriteria null threshold 100 processTemplateArrayHdl 2 showAllObjectNames true xpFmcException FMC_OK End /* get all persistent OIDs of an process template array and store it in a file */ ProcessTemplate.persistentOid processTemplateArrayHdl 2 persistentOidHdl 6 persistentOidOutputFileSpec "k:\fle\OID.lst" End /* get a persistent process template with the first OID find in the file OID.LST */ ExecutionService.persistentProcessTemplate executionServiceHdl 1 persistentOidInputFileSpec "k:\fle\OID.lst" processTemplateHdl 20 xpFmcException FMC_OK End ProcessTemplate.Name processTemplateHdl 20 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\example9.dat Wed Apr 21 09:30:44 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 ... ===> 330 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 = 'ContainerProcess_x010'" parameter: sortCriteria = null parameter: threshold = 20 parameter: processTemplateArrayHdl = 1 ..........RC Report......................................................... AcException = none = 0 XpException = none +++OK+++ ..........Object Names Report............................................... array size = 1 0) ContainerProcess_x010 ============================================================================ ProcessTemplateArray.size parameter: processTemplateArrayHdl = 1 ..........ValueReport....................................................... AcValue = 1 AcValue = Expected value missing ============================================================================ ProcessTemplateArray.getFirstElement parameter: processTemplateArrayHdl = 1 parameter: processTemplateHdl = 1 ============================================================================ ProcessTemplate.persistentOid parameter: processTemplateHdl = 1 parameter: persistentOidHdl = 5 ..........ValueReport....................................................... AcValue = "UQABQAAAAAAAAAAAAAAAAAFR" XpValue Expected value missing ============================================================================ ExecutionService.persistentProcessTemplate parameter: executionServiceHdl = 1 parameter: persistentOidHdl = 5 = "UQABQAAAAAAAAAAAAAAAAAFR" parameter: processTemplateHdl = 10 ============================================================================ ProcessTemplate.Name parameter: processTemplateHdl = 10 ..........ValueReport....................................................... AcValue = "ContainerProcess_x010" XpValue = "ContainerProcess_x010" +++OK+++ ============================================================================ ExecutionService.queryProcessTemplates parameter: executionServiceHdl = 1 parameter: filter = "NAME LIKE '*'" parameter: sortCriteria = null parameter: threshold = 100 parameter: processTemplateArrayHdl = 2 ..........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.persistentOid parameter: processTemplateArrayHdl = 2 parameter: persistentOidHdl = 6 parameter: persistentOidOutputFileSpec = "k:\fle\OID.lst" ..........ValueReport....................................................... A ...Refresh() will be applied to each object. 0) AcValue = "UQABQAAAAAAAAAAAAAAAAAFR" 1) AcValue = "UQABgAAAAAAAAAAAAAAAAAFR" 2) AcValue = "UQABwAAAAAAAAAAAAAAAAAFR" 3) AcValue = "UQACAAAAAAAAAAAAAAAAAAFR" 4) AcValue = "UQACgAAAAAAAAAAAAAAAAAFR" 5) AcValue = "UQACwAAAAAAAAAAAAAAAAAFR" 6) AcValue = "UQACQAAAAAAAAAAAAAAAAAFR" 7) AcValue = "UQAAwAAAAAAAAAAAAAAAAAFR" 8) AcValue = "UQABAAAAAAAAAAAAAAAAAAFR" ============================================================================ ExecutionService.persistentProcessTemplate parameter: executionServiceHdl = 1 parameter: persistentOidInputFileSpec = "k:\fle\OID.lst" parameter: persistentOidHdl = "UQABQAAAAAAAAAAAAAAAAAFR" parameter: processTemplateHdl = 20 ============================================================================ ProcessTemplate.Name parameter: processTemplateHdl = 20 ..........ValueReport....................................................... AcValue = "ContainerProcess_x010" XpValue Expected value missing ============================================================================ ExecutionService.logoff parameter: executionServiceHdl = 1 ..........RC Report......................................................... AcException = none = 0 XpException = none +++OK+++ ============================================================================ ====== Test case ended normally ============================================
Persistent OID File (for example OID.LST)
UQABQAAAAAAAAAAAAAAAAAFR UQABgAAAAAAAAAAAAAAAAAFR UQABwAAAAAAAAAAAAAAAAAFR UQACAAAAAAAAAAAAAAAAAAFR UQACgAAAAAAAAAAAAAAAAAFR UQACwAAAAAAAAAAAAAAAAAFR UQACQAAAAAAAAAAAAAAAAAFR UQAAwAAAAAAAAAAAAAAAAAFR UQABAAAAAAAAAAAAAAAAAAFR