WebSphere MQ Workflow 3.4.0 Java Generic API Test / Prototyping Tool

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

DateTime - Example

Testcase
/* example 15 */

Agent.Agent
  agentHdl                          1
End                                 
                                    
Agent.setLocator                   
  agentHdl                          1
  locator                           LOC_LOCATOR
End                                 
                                    
Agent.setName                       
  agentHdl                          1
  name                              ""
End                                 
                                    
Agent.locate                       
  agentHdl                          1
  systemGroup                       "FMCGRP"
  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 = 'Life_Insurance'"
  sortCriteria                      null
  threshold                         20 
  processTemplateArrayHdl           1 
  showAllObjectNames                true
  xpFmcException                    FMC_OK
End 

ProcessTemplateArray.getFirstElement        /* tool macro */
  processTemplateArrayHdl           1 
  processTemplateHdl                1
End 

/* -------------------------------------------------------- */

DateTime.currentTime                    /* tool macro */
  dateTimeHdl                       1 
End 

ProcessTemplate.createAndStartInstance
  processTemplateHdl                1
  instanceName                      "Example15Instance"
  systemGroup                       null 
  system                            null
  keepName                          false
  processInstanceHdl                1
  xpFmcException                    FMC_OK
End 

DateTime.currentTime                    /* tool macro */
  dateTimeHdl                       2 
End 

ProcessInstance.startTime
  processInstanceHdl                1
  dateTimeHdl                       3 
  xpValue                           null 
End 

ProcessInstance.refresh
  processInstanceHdl                1
  xpFmcException                    FMC_OK
End 

ProcessInstance.startTime
  processInstanceHdl                1
  dateTimeHdl                       3 
End 

DateTime.isInRange                      /* tool macro */
  dateTimeHdl                       2 
  dateTimeHdlMin                    1
  dateTimeHdlMax                    3
  xpValue                           true 
End 

/* -------------------------------------------------------- */

ProcessInstance.state
  processInstanceHdl                1
  xpValue                           RUNNING 
End 

ProcessInstance.suspensionTime
  processInstanceHdl                1
  dateTimeHdl                       4 
  xpValue                           null 
End 

DateTime.setValue                       /* tool macro */
  dateTimeHdl                       5   
  year                              2001
  month                             12   
  day                               25   
  hour                              10   
  minute                            10   
  second                            10   
End 

ProcessInstance.suspend2
  processInstanceHdl                1
  dateTimeHdl                       5 
  deep                              true
  xpFmcException                    FMC_OK
End 

ProcessInstance.suspensionTime
  processInstanceHdl                1
  dateTimeHdl                       6 
End 

ProcessInstance.suspensionExpirationTime
  processInstanceHdl                1
  dateTimeHdl                       7 
  xpValue                           "Tue Dec 25 10:10:10 CET 2001"
End 

DateTime.toString                       /* tool macro */
  dateTimeHdl                       7 
  xpValue                           "Tue Dec 25 10:10:10 CET 2001"
End 

/* -------------------------------------------------------- */

ExecutionService.logoff
  executionServiceHdl               1 
  xpFmcException                    FMC_OK
End
 
 

Result

MQSeries Workflow 3.2.0 Java Generic API Test Tool (JGATT), Driver v32_661
Test case: k:\fle\example15.dat
Fri Jun 11 18:05:58 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 ...
===> 400 msec 
============================================================================
Agent.Agent
parameter: agentHdl                                = 1 
============================================================================
Agent.setLocator
parameter: agentHdl                                = 1 
parameter: locator                                 = LOC_LOCATOR = 5 
============================================================================
Agent.setName
parameter: agentHdl                                = 1 
parameter: name                                    = ""
============================================================================
Agent.locate
parameter: agentHdl                                = 1 
parameter: systemGroup                             = "FMCGRP"
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 = 'Life_Insurance'"
parameter: sortCriteria                            = null 
parameter: threshold                               = 20 
parameter: processTemplateArrayHdl                 = 1 
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
..........Object Names Report...............................................
array size = 1 
0) Life_Insurance
============================================================================
ProcessTemplateArray.getFirstElement
parameter: processTemplateArrayHdl                 = 1 
parameter: processTemplateHdl                      = 1 
============================================================================
DateTime.currentTime
parameter: dateTimeHdl                             = 1 
..........ValueReport.......................................................
AcValue = Fri Jun 11 18:06:02 CEST 1999 
XpValue Expected value missing 
============================================================================
ProcessTemplate.createAndStartInstance
parameter: processTemplateHdl                      = 1 
parameter: instanceName                            = "Example15Instance"
parameter: systemGroup                             = null 
parameter: system                                  = null 
parameter: keepName                                = false 
parameter: processInstanceHdl                      = 1 
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
============================================================================
DateTime.currentTime
parameter: dateTimeHdl                             = 2 
..........ValueReport.......................................................
AcValue = Fri Jun 11 18:06:03 CEST 1999 
XpValue Expected value missing 
============================================================================
ProcessInstance.startTime
parameter: processInstanceHdl                      = 1 
parameter: dateTimeHdl                             = 3 
..........ValueReport.......................................................
AcValue = null 
XpValue = null 
+++OK+++
============================================================================
ProcessInstance.refresh
parameter: processInstanceHdl                      = 1 
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
============================================================================
ProcessInstance.startTime
parameter: processInstanceHdl                      = 1 
parameter: dateTimeHdl                             = 3 
..........ValueReport.......................................................
AcValue = Fri Jun 11 18:06:04 CEST 1999 
XpValue Expected value missing 
============================================================================
DateTime.isInRange
parameter: dateTimeHdlMin                          = 1 
parameter: dateTimeHdl                             = 2 
parameter: dateTimeHdlMax                          = 3 
dateTimeMin = Fri Jun 11 18:06:02 CEST 1999 
dateTime    = Fri Jun 11 18:06:03 CEST 1999 
dateTimeMax = Fri Jun 11 18:06:04 CEST 1999 
..........ValueReport.......................................................
AcValue = true 
XpValue = true 
+++OK+++
============================================================================
ProcessInstance.state
parameter: processInstanceHdl                      = 1 
..........ValueReport.......................................................
AcValue = RUNNING 
XpValue = RUNNING 
+++OK+++
============================================================================
ProcessInstance.suspensionTime
parameter: processInstanceHdl                      = 1 
parameter: dateTimeHdl                             = 4 
..........ValueReport.......................................................
AcValue = null 
XpValue = null 
+++OK+++
============================================================================
DateTime.setValue
parameter: dateTimeHdl                             = 5 
parameter: year                                    = 2001 
parameter: month                                   = 12 
parameter: day                                     = 25 
parameter: hour                                    = 10 
parameter: minute                                  = 10 
parameter: second                                  = 10 
============================================================================
ProcessInstance.suspend2
parameter: processInstanceHdl                      = 1 
parameter: dateTimeHdl                             = 5  (Tue Dec 25 10:10:10 CET 2001)
parameter: deep                                    = true 
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
============================================================================
ProcessInstance.suspensionTime
parameter: processInstanceHdl                      = 1 
parameter: dateTimeHdl                             = 6 
..........ValueReport.......................................................
AcValue = Fri Jun 11 18:06:05 CEST 1999 
XpValue Expected value missing 
============================================================================
ProcessInstance.suspensionExpirationTime
parameter: processInstanceHdl                      = 1
parameter: dateTimeHdl                             = 7 
..........ValueReport.......................................................
AcValue = Tue Dec 25 10:10:10 CET 2001 
XpValue = Tue Dec 25 10:10:10 CET 2001 
+++OK+++
============================================================================
DateTime.toString
parameter: dateTimeHdl                             = 7 
..........ValueReport.......................................................
AcValue = Tue Dec 25 10:10:10 CET 2001 
XpValue = Tue Dec 25 10:10:10 CET 2001 
+++OK+++
============================================================================
ExecutionService.logoff
parameter: executionServiceHdl                     = 1 
..........RC Report.........................................................
AcException = none = 0 
XpException = none 
+++OK+++
============================================================================
====== Test case ended normally ============================================