WebSphere MQ Workflow 3.4 Generic C API Test / Prototyping Tool

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

FmcjProcessInstanceList - Example

Testcase
/*
pil test case
Invocation:   fmctjca1 pil.dat pil.log
*/

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

FmcjExecutionServiceCreateProcessInstanceList
  ExecutionServiceHdl               1
  ListName                          "PI List 2"
  PersistentListType                Fmc_LT_Public
  Owner                             NULL
  Description                       "My second PI list"
  Filter                            "NAME LIKE 'C*'"
  SortCriteria                      "NAME DESC"
  Threshold                         7
  ProcessInstanceListHdl            1
  XpRc                              FMC_OK
End

FmcjExecutionServiceQueryProcessInstanceLists
  ExecutionServiceHdl               1
  ProcessInstanceListVectorHdl      1
  ShowAllObjectNames                TRUE
  XpRc                              FMC_OK
End

FmcjProcessInstanceListVectorSize
  ProcessInstanceListVectorHdl      1
  XpValue                           2
End

FmcjProcessInstanceListVectorFirstElement
  ProcessInstanceListVectorHdl      1
  ProcessInstanceListHdl            2
End

FmcjProcessInstanceListName
  ProcessInstanceListHdl            2
  BufferLength                      33
  XpValue                           "PIL1"
End

FmcjProcessInstanceListRefresh
  ProcessInstanceListHdl            2
  XpRc                              FMC_OK
End

FmcjProcessInstanceListFilter
  ProcessInstanceListHdl            2
  BufferLength                      4097
  XpValue                           ""
End

FmcjProcessInstanceListQueryProcessInstances
  ProcessInstanceListHdl            2
  ProcessInstanceVectorHdl          1
  ShowAllObjectNames                TRUE
  XpRc                              FMC_OK
End

FmcjProcessInstanceListVectorNextElement
  ProcessInstanceListVectorHdl      1
  ProcessInstanceListHdl            3
End

FmcjProcessInstanceListName
  ProcessInstanceListHdl            3
  BufferLength                      33
  XpValue                           "PI List 2"
End

FmcjProcessInstanceListRefresh
  ProcessInstanceListHdl            3
  XpRc                              FMC_OK
End

FmcjProcessInstanceListFilter
  ProcessInstanceListHdl            3
  BufferLength                      4097
  XpValue                           "NAME LIKE 'C*'"
End

FmcjProcessInstanceListQueryProcessInstances
  ProcessInstanceListHdl            3
  ProcessInstanceVectorHdl          2
  ShowAllObjectNames                TRUE
  XpRc                              FMC_OK
End

FmcjProcessInstanceListVectorDeallocate
  ProcessInstanceListVectorHdl      1
  XpRc                              FMC_OK
End

FmcjProcessInstanceListDeallocate
  ProcessInstanceListHdl            1
  XpRc                              FMC_OK
End

FmcjProcessInstanceListDeallocate
  ProcessInstanceListHdl            2
  XpRc                              FMC_OK
End

FmcjProcessInstanceListDeallocate
  ProcessInstanceListHdl            3
  XpRc                              FMC_OK
End

FmcjProcessInstanceVectorDeallocate
  ProcessInstanceVectorHdl          1
  XpRc                              FMC_OK
End

FmcjProcessInstanceVectorDeallocate
  ProcessInstanceVectorHdl          2
  XpRc                              FMC_OK
End

FmcjExecutionServiceLogoff
  ExecutionServiceHdl               1
  XpRc                              FMC_OK
End

FmcjExecutionServiceDeallocate
  ExecutionServiceHdl               1
  XpRc                              FMC_OK
End

FmcjGlobalDisconnect
  XpRc                              FMC_OK
End
 

 

Result

C API Test Tool for MQSeries Workflow v330 Windows 9x/NT/2000: FMCTJCA1
Test case: PIL.DAT
Thu Jul 26 08:43:15 2001
============================================================================
+++> 
============================================================================
FmcjGlobalConnect
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceAllocate
parameter:  ExecutionServiceHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceLogon
parameter:  ExecutionServiceHdl = 1
parameter:  UserID = ADMIN
parameter:  Password = password
parameter:  SessionMode = Fmc_SM_Default = 0
parameter:  AbsentIndicator = Fmc_SA_NotSet = 0
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceCreateProcessInstanceList
parameter:  ExecutionServiceHdl = 1
parameter:  ListName = PI List 2
parameter:  PersistentListType = Fmc_LT_Public = 1
parameter:  Owner = NULL
parameter:  Description = My second PI list
parameter:  Filter = NAME LIKE 'C*'
parameter:  SortCriteria = NAME DESC
parameter:  Threshold = 7
parameter:  ProcessInstanceListHdl = 1
..........Status Report.....................................................
ProcessInstanceListHdl = 0xbdf4e0
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceQueryProcessInstanceLists
parameter:  ExecutionServiceHdl = 1
parameter:  ProcessInstanceListVectorHdl = 1
..........Object Names Report...............................................
vector size = 2
0) PIL1
1) PI List 2
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceListVectorSize
parameter:  ProcessInstanceListVectorHdl = 1
..........Value Report......................................................
AcSize = 2
XpSize = 2
+++OK+++
============================================================================
FmcjProcessInstanceListVectorFirstElement
parameter:  ProcessInstanceListVectorHdl = 1
parameter:  ProcessInstanceListHdl = 2
..........Status Report.....................................................
ProcessInstanceListHdl = 0xbde570
============================================================================
FmcjProcessInstanceListName
parameter:  ProcessInstanceListHdl = 2
parameter:  BufferLength = 33
..........Value Report......................................................
AcValue = "PIL1"
XpValue = "PIL1"
+++OK+++
============================================================================
FmcjProcessInstanceListRefresh
parameter:  ProcessInstanceListHdl = 2
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceListFilter
parameter:  ProcessInstanceListHdl = 2
parameter:  BufferLength = 4097
..........Value Report......................................................
AcValue = ""
XpValue = ""
+++OK+++
============================================================================
FmcjProcessInstanceListQueryProcessInstances
parameter:  ProcessInstanceListHdl = 2
parameter:  ProcessInstanceVectorHdl = 1
..........Object Names Report...............................................
vector size = 3
0) TestInstance
1) CreditRequest
2) Medical_Opinion
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceListVectorNextElement
parameter:  ProcessInstanceListVectorHdl = 1
parameter:  ProcessInstanceListHdl = 3
..........Status Report.....................................................
ProcessInstanceListHdl = 0xbdf640
============================================================================
FmcjProcessInstanceListName
parameter:  ProcessInstanceListHdl = 3
parameter:  BufferLength = 33
..........Value Report......................................................
AcValue = "PI List 2"
XpValue = "PI List 2"
+++OK+++
============================================================================
FmcjProcessInstanceListRefresh
parameter:  ProcessInstanceListHdl = 3
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceListFilter
parameter:  ProcessInstanceListHdl = 3
parameter:  BufferLength = 4097
..........Value Report......................................................
AcValue = "NAME LIKE 'C*'"
XpValue = "NAME LIKE 'C*'"
+++OK+++
============================================================================
FmcjProcessInstanceListQueryProcessInstances
parameter:  ProcessInstanceListHdl = 3
parameter:  ProcessInstanceVectorHdl = 2
..........Object Names Report...............................................
vector size = 1
0) CreditRequest
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceListVectorDeallocate
parameter:  ProcessInstanceListVectorHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceListDeallocate
parameter:  ProcessInstanceListHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceListDeallocate
parameter:  ProcessInstanceListHdl = 2
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceListDeallocate
parameter:  ProcessInstanceListHdl = 3
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceVectorDeallocate
parameter:  ProcessInstanceVectorHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessInstanceVectorDeallocate
parameter:  ProcessInstanceVectorHdl = 2
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceLogoff
parameter:  ExecutionServiceHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceDeallocate
parameter:  ExecutionServiceHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjGlobalDisconnect
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
====== Test case ended normally ============================================