WebSphere MQ Workflow 3.4 Generic C API Test Tool / Prototyping Tool

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

Multi Session Scenario (APIs for stateless server) - Example

Scenario for a single session
Single Session Scenario

Scenario rearranged for a multi session
Multi Session Scenario
 

Testcase of session 1

TestTool_CommentToOutput
  Comment                           "Session API Test: Part 1"
  ToStandardError                   TRUE
End

FmcjGlobalConnect
  XpRc                              FMC_OK
End

FmcjExecutionServiceAllocate
  ExecutionServiceHdl               1
  XpRc                              FMC_OK
End

FmcjExecutionServiceLogon
  ExecutionServiceHdl               1
  UserID                            "ADMIN"
  Password                          "password"
  SessionMode                       Fmc_SM_PresentHere
  AbsentIndicator                   Fmc_SA_NotSet
  XpRc                              FMC_OK
End

FmcjExecutionServiceSessionID
  ExecutionServiceHdl               1
  BufferLength                      500
  SessionIdHdl                      1
  SessionIdOutputFileSpec           "SessionId.txt"
End

FmcjExecutionServiceQueryProcessTemplates
  ExecutionServiceHdl               1
  Filter                            "NAME='CreditRequest'"
  SortCriteria                      "NAME ASC"
  Threshold                         10
  ProcessTemplateVectorHdl          1
  ShowAllObjectNames                TRUE
  XpRc                              FMC_OK
End

FmcjProcessTemplateVectorFirstElement
  ProcessTemplateVectorHdl          1
  ProcessTemplateHdl                1
End

FmcjProcessTemplatePersistentOid
  ProcessTemplateHdl                1
  PersistentOidHdl                  1
  PersistentOidOutputFileSpec       "ProcTemplOID.txt"
  BufferLength                      129
End

FmcjProcessTemplateInitialInContainer
  ProcessTemplateHdl                1
  ReadWriteContainerHdl             1
  XpRc                              FMC_OK
End

FmcjReadWriteContainerStreamLength
  ReadWriteContainerHdl             1
  XpValue                           260
End

FmcjReadWriteContainerAsStream
  ReadWriteContainerHdl             1
  StreamLength                      260
  StreamHdl                         1
  StreamOutputFileSpec              "ReadWriteContainerStream.txt"
End

FmcjGlobalDisconnect
  XpRc                              FMC_OK
End

FmcjProcessTemplateDeallocate 
  ProcessTemplateHdl                1
  XpRc                              FMC_OK
End 

FmcjProcessTemplateVectorDeallocate 
  ProcessTemplateVectorHdl          1
  XpRc                              FMC_OK
End

FmcjReadWriteContainerDeallocate 
  ReadWriteContainerHdl             1 
  XpRc                              FMC_OK
End

FmcjExecutionServiceDeallocate 


  ExecutionServiceHdl               1 
  XpRc                              FMC_OK
End
 

 
 
 

Result of session 1

C API Test Tool for MQSeries Workflow v330 Windows 9x/NT/2000: FMCTJCA1
Test case: SESSION1.DAT
Tue Jul 10 16:33:11 2001
============================================================================
+++> 
============================================================================
TestTool_CommentToOutput
Session API Test: Part 1
============================================================================
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_PresentHere = 2
parameter:  AbsentIndicator = Fmc_SA_NotSet = 0
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceSessionID
parameter:  ExecutionServiceHdl = 1
parameter:  BufferLength = 500
..........Value Report......................................................
AcValue = "UwAAAAEAJcAyAAAAAAAAAABT"
XpValue = Expected value missing
============================================================================
FmcjExecutionServiceQueryProcessTemplates
parameter:  ExecutionServiceHdl = 1
parameter:  Filter = NAME='CreditRequest'
parameter:  SortCriteria = NAME ASC
parameter:  Threshold = 10
parameter:  ProcessTemplateVectorHdl = 1
..........Object Names Report...............................................
vector size = 1
0) CreditRequest
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessTemplateVectorFirstElement
parameter:  ProcessTemplateVectorHdl = 1
parameter:  ProcessTemplateHdl = 1
..........Status Report.....................................................
ProcessTemplateHdl = 0xbdd370
============================================================================
FmcjProcessTemplatePersistentOid
parameter:  ProcessTemplateHdl = 1
parameter:  PersistentOid = 1
parameter:  PersistentOidOutputFileSpec = ProcTemplOID.txt
parameter:  BufferLength = 129
..........Value Report......................................................
AcValue = "UQAAAAEAD0AAAAAAAAAAAABR"
XpValue = Expected value missing
============================================================================
FmcjProcessTemplateInitialInContainer
parameter:  ProcessTemplateHdl = 1
parameter:  ReadWriteContainerHdl = 1
..........Status Report.....................................................
ReadWriteContainerHdl = 0x1c236c0
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjReadWriteContainerStreamLength
parameter:  ReadWriteContainerHdl = 1
..........Value Report......................................................
AcValue = 260
XpValue = 260
+++OK+++
============================================================================
FmcjReadWriteContainerAsStream
parameter:  ReadWriteContainerHdl = 1
parameter:  StreamLength = 260
parameter:  StreamHdl = 1
parameter:  StreamOutputFileSpec = ReadWriteContainerStream.txt
..........Value Report......................................................
   00 00 00 00 46 4D 49 44   03 03 00 00 00 00 01 04    ....FMID........
   00 00 04 E4 00 00 00 4A   00 00 00 01 44 4C 74 00    ...ä...J....DLt.
   46 4D 49 44 03 03 00 00   00 00 00 78 00 00 04 E4    FMID.......x...ä
   00 00 00 0A 50 65 72 73   6F 6E 49 6E 66 6F 00 00    ....PersonInfo..
   00 00 00 0A 50 65 72 73   6F 6E 49 6E 66 6F 00 00    ....PersonInfo..
   00 00 00 02 00 00 00 02   00 00 00 09 46 69 72 73    ............Firs
   74 4E 61 6D 65 00 00 00   00 00 00 06 53 54 52 49    tName.......STRI
   4E 47 00 00 00 00 00 00   00 00 00 08 4C 61 73 74    NG..........Last
   4E 61 6D 65 00 00 00 06   53 54 52 49 4E 47 00 00    Name....STRING..
   00 00 00 00 00 00 00 00   46 4D 49 44 03 03 00 00    ........FMID....
   00 00 00 6C 00 00 04 E4   3B 9A CB 2C 00 00 00 1C    ...l...ä;šË,....
   00 00 00 0D 43 72 65 64   69 74 52 65 71 75 65 73    ....CreditReques
   74 00 00 00 3B 9A CC BC   00 00 00 24 00 00 00 18    t...;šÌ¼...$....
   55 51 41 41 41 41 45 41   44 30 41 41 41 41 41 41    UQAAAAEAD0AAAAAA
   41 41 41 41 41 41 42 52   3B 9A CD 20 00 00 00 18    AAAAAABR;šÍ ....
   00 00 00 0A 50 65 72 73   6F 6E 49 6E 66 6F 00 00    ....PersonInfo..
   00 00 00 4A                                          ...J
============================================================================
FmcjGlobalDisconnect
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessTemplateDeallocate
parameter:  ProcessTemplateHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessTemplateVectorDeallocate
parameter:  ProcessTemplateVectorHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjReadWriteContainerDeallocate
parameter:  ReadWriteContainerHdl = 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+++
============================================================================
====== Test case ended normally ============================================
 

 
 
 

Testcase of session 2

TestTool_CommentToOutput
  Comment                           "Session API Test: Part 2"
  ToStandardError                   TRUE
End

FmcjGlobalConnect
  XpRc                              FMC_OK
End

FmcjExecutionServiceAllocate
  ExecutionServiceHdl               1
  XpRc                              FMC_OK
End

FmcjExecutionServiceSetSessionContext
  ExecutionServiceHdl               1
  UserID                            "ADMIN"
  SessionIdInputFileSpec            "SessionId.txt"
  XpRc                              FMC_OK
End

FmcjExecutionServiceReadWriteContainerFromStream
  ExecutionServiceHdl               1
  StreamInputFileSpec               "ReadWriteContainerStream.txt"
  StreamLength                      260
  ReadWriteContainerHdl             1
End

FmcjContainer_DUMP_ALL_2
  ReadWriteContainerHdl             1
  IncludePredefinedDataStructures   TRUE
End

FmcjExecutionServicePersistentProcessTemplate
  ExecutionServiceHdl               1
  PersistentOidInputFileSpec       "ProcTemplOID.txt"
  ProcessTemplateHdl                1
End

FmcjProcessTemplateName 
  ProcessTemplateHdl                1
  BufferLength                      100
  XpValue                           "CreditRequest"
End

FmcjExecutionServiceLogoff 
  ExecutionServiceHdl               1 
  XpRc                              FMC_OK
End 

FmcjGlobalDisconnect 
  XpRc                              FMC_OK
End

FmcjProcessTemplateDeallocate 
  ProcessTemplateHdl                1
  XpRc                              FMC_OK
End 

FmcjReadWriteContainerDeallocate 
  ReadWriteContainerHdl             1 
  XpRc                              FMC_OK
End

FmcjExecutionServiceDeallocate 
  ExecutionServiceHdl               1 
  XpRc                              FMC_OK
End
 

 
 
 

Result of session 2

C API Test Tool for MQSeries Workflow v330 Windows 9x/NT/2000: FMCTJCA1
Test case: SESSION2.DAT
Tue Jul 10 16:34:03 2001
============================================================================
+++> 
============================================================================
TestTool_CommentToOutput
Session API Test: Part 2
============================================================================
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+++
============================================================================
FmcjExecutionServiceSetSessionContext
parameter:  ExecutionServiceHdl = 1
parameter:  UserID = ADMIN
parameter:  SessionIdInputFileSpec = SessionId.txt
            SessionID = UwAAAAEAJcAyAAAAAAAAAABT
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjExecutionServiceReadWriteContainerFromStream
parameter:  ExecutionServiceHdl = 1
parameter:  StreamInputFileSpec = ReadWriteContainerStream.txt
parameter:  StreamValue = 
   00 00 00 00 46 4D 49 44   03 03 00 00 00 00 01 04    ....FMID........
   00 00 04 E4 00 00 00 4A   00 00 00 01 44 4C 74 00    ...ä...J....DLt.
   46 4D 49 44 03 03 00 00   00 00 00 78 00 00 04 E4    FMID.......x...ä
   00 00 00 0A 50 65 72 73   6F 6E 49 6E 66 6F 00 00    ....PersonInfo..
   00 00 00 0A 50 65 72 73   6F 6E 49 6E 66 6F 00 00    ....PersonInfo..
   00 00 00 02 00 00 00 02   00 00 00 09 46 69 72 73    ............Firs
   74 4E 61 6D 65 00 00 00   00 00 00 06 53 54 52 49    tName.......STRI
   4E 47 00 00 00 00 00 00   00 00 00 08 4C 61 73 74    NG..........Last
   4E 61 6D 65 00 00 00 06   53 54 52 49 4E 47 00 00    Name....STRING..
   00 00 00 00 00 00 00 00   46 4D 49 44 03 03 00 00    ........FMID....
   00 00 00 6C 00 00 04 E4   3B 9A CB 2C 00 00 00 1C    ...l...ä;šË,....
   00 00 00 0D 43 72 65 64   69 74 52 65 71 75 65 73    ....CreditReques
   74 00 00 00 3B 9A CC BC   00 00 00 24 00 00 00 18    t...;šÌ¼...$....
   55 51 41 41 41 41 45 41   44 30 41 41 41 41 41 41    UQAAAAEAD0AAAAAA
   41 41 41 41 41 41 42 52   3B 9A CD 20 00 00 00 18    AAAAAABR;šÍ ....
   00 00 00 0A 50 65 72 73   6F 6E 49 6E 66 6F 00 00    ....PersonInfo..
   00 00 00 4A                                          ...J
parameter:  StreamLength = 260
parameter:  ReadWriteContainerHdl = 1
============================================================================
FmcjContainer_DUMP_ALL_2
parameter:  ReadWriteContainerHdl = 1
..........Value Report......................................................
--- begin of container-dump ------------------------------------------------
Container type : PersonInfo
_ACTIVITY : STRING =  (not set)
_ACTIVITY_INFO.CoordinatorOfRole : STRING =  (not set)
_ACTIVITY_INFO.Duration : LONG =  (not set)
_ACTIVITY_INFO.Duration2 : LONG =  (not set)
_ACTIVITY_INFO.LowerLevel : LONG =  (not set)
_ACTIVITY_INFO.MembersOfRoles : STRING =  (not set)
_ACTIVITY_INFO.Organization : STRING =  (not set)
_ACTIVITY_INFO.OrganizationType : LONG =  (not set)
_ACTIVITY_INFO.People : STRING =  (not set)
_ACTIVITY_INFO.PersonToNotify : STRING =  (not set)
_ACTIVITY_INFO.Priority : LONG =  (not set)
_ACTIVITY_INFO.UpperLevel : LONG =  (not set)
_PROCESS : STRING =  (not set)
_PROCESS_INFO.Duration : LONG =  (not set)
_PROCESS_INFO.Organization : STRING =  (not set)
_PROCESS_INFO.ProcessAdministrator : STRING =  (not set)
_PROCESS_INFO.Role : STRING =  (not set)
_PROCESS_MODEL : STRING = "CreditRequest"
FirstName : STRING =  (not set)
LastName : STRING =  (not set)
--- end of container dump --------------------------------------------------
============================================================================
FmcjExecutionServicePersistentProcessTemplate
parameter:  ExecutionServiceHdl = 1
parameter:  PersistentOidInputFileSpec = ProcTemplOID.txt
            PersistentObjectName = UQAAAAEAD0AAAAAAAAAAAABR
parameter:  ProcessTemplateHdl = 1
============================================================================
FmcjProcessTemplateName
parameter:  ProcessTemplateHdl = 1
parameter:  BufferLength = 100
..........Value Report......................................................
AcValue = "CreditRequest"
XpValue = "CreditRequest"
+++OK+++
============================================================================
FmcjExecutionServiceLogoff
parameter:  ExecutionServiceHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjGlobalDisconnect
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessTemplateDeallocate
parameter:  ProcessTemplateHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjReadWriteContainerDeallocate
parameter:  ReadWriteContainerHdl = 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+++
============================================================================
====== Test case ended normally ============================================