WebSphere MQ Workflow 3.4 Generic C API Test / Prototyping Tool

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

Test Case Example - Object Navigation via Handles (Details)

/* Example 1 test case */

                                   Handles which            Symbolic Handle Name
                                   references               (user defined,
                                   MQ Workflow Objects      1-49 for each type)

                                   ExecutionServiceHdl      1 ---------------------+
                                   ProcessTemplateVectorHdl 1 -------------------+ |
                                   ProcessTemplateHdl       1 -----------------+ | |
                                   ReadWriteContainerHdl    1 ---------------+ | | |
                                   ProcessInstanceHdl       1 -------------+ | | | |
                                   ProcessInstanceVectorHdl 1 -----------+ | | | | |
                                   ProcessInstanceHdl       2 ---------+ | | | | | |
                                   WorkitemVectorHdl        1 -------+ | | | | | | |
                                   WorkitemHdl              1 -----+ | | | | | | | |
                                                                   | | | | | | | | |
                                   Legend:                         | | | | | | | | |
                                                                   | | | | | | | | |
                                   >---+ Get Handle                | | | | | | | | |
                                       |                           | | | | | | | | |
                                   <---+ Use Handle                | | | | | | | | |
                                       |                           | | | | | | | | |
                                   X---+ Handle becomes invalid    | | | | | | | | |
                                         after deallocation /      | | | | | | | | |
                                         deconstruction of the     | | | | | | | | |
                                         object.                   | | | | | | | | |
                                                                   | | | | | | | | |

FmcjGlobalConnect
  XpRc                              FMC_OK
End

FmcjExecutionServiceAllocate
  ExecutionServiceHdl               1                           >------------------+
  XpRc                              FMC_OK                                         |
End                                                                                |
                                                                                   |
FmcjExecutionServiceLogon                                                          |
  ExecutionServiceHdl               1                           <------------------+
  UserId                            "ADMIN"                                        |
  Password                          "password"                                     |
  SessionMode                       Fmc_SM_Default                                 |
  AbsentIndicator                   Fmc_SA_NotSet                                  |
  XpRc                              FMC_OK                                         |
End                                                                                |
                                                                                   |
FmcjExecutionServiceQueryProcessTemplates                                          |
  ExecutionServiceHdl               1                           <------------------+
  Filter                            "NAME='ContainerProcess1'"                     |
  SortCriteria                      "NAME ASC"                                     |
  Threshold                         200                                            |
  ProcessTemplateVectorHdl          1                           >----------------+ |
  ShowAllObjectNames                TRUE                                         | |
  XpRc                              FMC_OK                                       | |
End                                                                              | |
                                                                                 | |
FmcjProcessTemplateVectorSize                                                    | |
  ProcessTemplateVectorHdl          1                           <----------------+ |
  XpSize                            1                                            | |
End                                                                              | |
                                                                                 | |
FmcjProcessTemplateVectorFirstElement                                            | |
  ProcessTemplateVectorHdl          1                           <----------------+ |
  ProcessTemplateHdl                1                           >--------------+ | |
End                                                                            | | |
                                                                               | | |
FmcjProcessTemplateName                                                        | | |
  ProcessTemplateHdl                1                           <--------------+ | |
  BufferLength                      100                                        | | |
  XpValue                           "ContainerProcess1"                        | | |
End                                                                            | | |
                                                                               | | |
FmcjProcessTemplateInitialInContainer                                          | | |
  ProcessTemplateHdl                1                           <--------------+ | |
  ReadWriteContainerHdl             1                           >------------+ | | |
  XpRc                              FMC_OK                                   | | | |
End                                                                          | | | |
                                                                             | | | |
FmcjReadWriteContainerSetStringValue                                         | | | |
  ReadWriteContainerHdl             1                           <------------+ | | |                                          | | | |
  QualifiedName                     "DsL1M1String"                           | | | |  
  StringValue                       "Ein test string"                        | | | |
  XpRc                              FMC_OK                                   | | | |
End                                                                          | | | |
                                                                             | | | |
FmcjReadWriteContainerSetStringValue                                         | | | |
  ReadWriteContainerHdl             1                           <------------+ | | |                                          | | | |
  QualifiedName                     "DsL1M1String"                           | | | |  
  StringValue                       "Ein test string"                        | | | |
  XpRc                              FMC_OK                                   | | | |
End                                                                          | | | |
                                                                             | | | |                                                                             | | | |
FmcjProcessTemplateCreateAndStartInstance                                    | | | |
  ProcessTemplateHdl                1                           <--------------+ | |
  InstanceName                      "TestInstance_1A"                        | | | |
  SystemGroup                       NULL                                     | | | |
  System                            NULL                                     | | | |
  ReadWriteContainerHdl             1                           <------------+ | | |
  KeepName                          TRUE                                     | | | |
  ProcessInstanceHdl                1                           >----------+ | | | |
  XpRc                              FMC_OK                                 | | | | |
End                                                                        | | | | |
                                                                           | | | | |
FmcjReadWriteContainerDeallocate                                           | | | | |
  ReadWriteContainerHdl             1                           X------------+ | | |
  XpRc                              FMC_OK                                 |   | | |
End                                                                        |   | | |
                                                                           |   | | |
FmcjProcessTemplateDeallocate                                              |   | | |
  ProcessTemplateHdl                1                           X--------------+ | |
  XpRc                              FMC_OK                                 |     | |
End                                                                        |     | |
                                                                           |     | |
FmcjProcessTemplateVectorDeallocate                                        |     | |
  ProcessTemplateVectorHdl          1                           X----------------+ |
  XpRc                              FMC_OK                                 |       |
End                                                                        |       |
                                                                           |       |
FmcjExecutionServiceQueryProcessInstances                                  |       |
  ExecutionServiceHdl               1                           <------------------+
  Filter                            "NAME='TestInstance_1A'"               |       |
  SortCriteria                      NULL                                   |       |
  Threshold                         100                                    |       |
  ProcessInstanceVectorHdl          1                           >--------+ |       |
  ShowAllObjectNames                TRUE                                 | |       |
  XpRc                              FMC_OK                               | |       |
End                                                                      | |       |
                                                                         | |       |
FmcjProcessInstanceVectorFirstElement                                    | |       |
  ProcessInstanceVectorHdl          1                           <--------+ |       |
  ProcessInstanceHdl                2                           >------+ | |       |
End                                                                    | | |       |
                                                                       | | |       |
FmcjProcessInstanceEqual                                               | | |       |
  ProcessInstanceHdl                1                           <----------+       |
  ProcessInstanceHdl2               2                           <------+ | |       |
  XpValue                           TRUE                               | | |       |
End                                                                    | | |       |
                                                                       | | |       |
FmcjProcessInstanceName                                                | | |       |
  ProcessInstanceHdl                2                           <------+ | |       |
  BufferLength                      100                                | | |       |
  XpValue                           "TestInstance_1A"                  | | |       |
End                                                                    | | |       |
                                                                       | | |       |
FmcjProcessInstanceState                                               | | |       |
  ProcessInstanceHdl                2                           <------+ | |       |
  XpValue                           Fmc_PS_Running                     | | |       |
End                                                                    | | |       |
                                                                       | | |       |
FmcjProcessInstanceDeallocate                                          | | |       |
  ProcessInstanceHdl                2                           X------+ | |       |
  XpRc                              FMC_OK                               | |       |
End                                                                      | |       |
                                                                         | |       |
FmcjProcessInstanceDeallocate                                            | |       |
  ProcessInstanceHdl                1                           X----------+       |
  XpRc                              FMC_OK                               |         |
End                                                                      |         |
                                                                         |         |
FmcjProcessInstanceVectorDeallocate                                      |         |
  ProcessInstanceVectorHdl          1                           X--------+         |
  XpRc                              FMC_OK                                         |
End                                                                                |
                                                                                   |
FmcjExecutionServiceQueryWorkitems                                                 |
  ExecutionServiceHdl               1                           <------------------+
  Filter    "NAME='Prog_A_ContainerTest1' AND OWNER='ADMIN'"                       |
  SortCriteria                      NULL                                           |
  Threshold                         500                                            |
  WorkitemVectorHdl                 1                           >----+             |
  ShowAllObjectNames                TRUE                             |             |
  XpRc                              FMC_OK                           |             |
End                                                                  |             |
                                                                     |             |
FmcjWorkitemVectorSize                                               |             |
  WorkitemVectorHdl                 1                           <----+             |
  XpValue                           1                                |             |
End                                                                  |             |
                                                                     |             |
FmcjWorkitemVectorFirstElement                                       |             |
  WorkitemVectorHdl                 1                           <----+             |
  WorkitemHdl                       1                           >--+ |             |
End                                                                | |             |
                                                                   | |             |
FmcjWorkitemName                                                   | |             |
  WorkitemHdl                       1                           <--+ |             |
  BufferLength                      120                            | |             |
  XpValue                           "Prog_A_ContainerTest1"        | |             |
End                                                                | |             |
                                                                   | |             |
FmcjWorkitemState                                                  | |             |
  WorkitemHdl                       1                           <--+ |             |
  XpValue                           Fmc_IS_Ready                   | |             |
End                                                                | |             |
                                                                   | |             |
FmcjWorkitemStart                                                  | |             |
  WorkitemHdl                       1                           <--+ |             |
  XpRc                              FMC_OK                         | |             |
End                                                                | |             |
                                                                   | |             |
FmcjWorkitemDeallocate                                             | |             |
  WorkitemHdl                       1                           X--+ |             |
  XpRc                              FMC_OK                           |             |
End                                                                  |             |
                                                                     |             |
FmcjWorkitemVectorDeallocate                                         |             |
  WorkitemVectorHdl                 1                           X----+             |
  XpRc                              FMC_OK                                         |
End                                                                                |
                                                                                   |
FmcjExecutionServiceLogoff                                                         |
  ExecutionServiceHdl               1                           <------------------+
  XpRc                              FMC_OK                                         |
End                                                                                |
                                                                                   |
FmcjExecutionServiceDeallocate                                                     |
  ExecutionServiceHdl               1                           X------------------+
  XpRc                              FMC_OK
End

FmcjGlobalDisconnect
  XpRc                              FMC_OK
End