WebSphere MQ Workflow 3.4 Generic C API Test / Prototyping Tool

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

FmcjProcessTemplate - Example

Testcase
/* Example24 test case (FmcjProcessTemplate...()) */

FmcjGlobalConnect
  XpRc                              FMC_OK
End

FmcjExecutionServiceAllocate
  ExecutionServiceHdl               1
  XpRc                              FMC_OK
End

FmcjExecutionServiceLogon
  ExecutionServiceHdl               1
  UserId                            "USER2"
  Password                          "password"
  SessionMode                       Fmc_SM_PresentHere
  AbsentIndicator                   Fmc_SA_NotSet
  XpRc                              FMC_OK
End

FmcjExecutionServiceQueryProcessTemplates
  ExecutionServiceHdl               1
  Filter                            NULL
  SortCriteria                      "NAME DESC"
  Threshold                         200
  ProcessTemplateVectorHdl          1
  ShowAllObjectNames                TRUE
  XpRc                              FMC_OK
End

FmcjProcessTemplateVectorFirstElement
  ProcessTemplateVectorHdl          1
  ProcessTemplateHdl                1
End

FmcjProcessTemplateInContainerNeeded 
  ProcessTemplateHdl                1
  XpValue                           TRUE
End

FmcjProcessTemplateInitialInContainer
  ProcessTemplateHdl                1
  ReadWriteContainerHdl             1
  XpRc                              FMC_OK
End

FmcjProcessTemplateCreateAndStartInstance 
  ProcessTemplateHdl                1
  InstanceName                      "Example24_Instance"
  SystemGroup                       NULL
  System                            NULL
  ReadWriteContainerHdl             1
  KeepName                          FALSE
  ProcessInstanceHdl                1
  XpRc                              FMC_OK
End

FmcjProcessTemplateRoleNameIsNull 
  ProcessTemplateHdl                1
  XpValue                           TRUE
End

FmcjProcessTemplateCategory 
  ProcessTemplateHdl                1
  BufferLength                      100
  XpValue                           "Sales_and_underwriting"
End

FmcjProcessTemplateDescription 
  ProcessTemplateHdl                1
  BufferLength                      500
  XpValue                           "Medical opinion"
End

FmcjProcessTemplateName 
  ProcessTemplateHdl                1
  BufferLength                      100
  XpValue                           "Medical_Opinion"
End

FmcjProcessTemplateCreationTime 
  ProcessTemplateHdl                1
  DateTimeHdl                       1
End

FmcjProcessTemplateLastModificationTime 
  ProcessTemplateHdl                1
  DateTimeHdl                       1
End

FmcjProcessTemplateIcon 
  ProcessTemplateHdl                1
  BufferLength                      100
  XpValue                           "FMCBPRC"
End

FmcjProcessTemplateIsComplete 
  ProcessTemplateHdl                1
  XpValue                           FALSE
End

FmcjProcessTemplateDocumentation 
  ProcessTemplateHdl                1
  BufferLength                      4097
  XpValue                           ""
End

FmcjProcessTemplateRefresh 
  ProcessTemplateHdl                1
  XpRc                              FMC_OK
End

FmcjProcessTemplateIsComplete 
  ProcessTemplateHdl                1
  XpValue                           TRUE
End

FmcjProcessTemplateDocumentation 
  ProcessTemplateHdl                1
  BufferLength                      4097
  XpValue                           "PURPOSE:  The Medical Opinion process routes a request
for the medical history of an applicant for life insurance through the Underwriting
department.
OUTPUT:  Produces the following items:
-- A letter to the applicant's physician requesting the applicant's complete medical
history
-- If an underwriter decides a medical examination is necessary, a letter to the
 applicant asking the applicant to make an appointment with the company physician
STRUCTURE OF MODEL:  Activities route a request for a medical opinion through the
Underwriting department.  An underwriter sends a letter to the applicant's physician
asking for the applicant's complete medical history. After the medical
history is received,
an underwriter decides whether the applicant should be examined by the com
pany physician.  If not, the underwriter decides whether to recommend acceptance
 or rejection of the application, and the Medical Opinion process is complete.
If so, an under
writer writes a letter to the applicant requesting that the applicant make an appointment
with the company physician.  After the company physician's report is
received, an underwriter checks it and decides whether to recommend acceptance or
rejection of
the application.
ACTIVITIES:
-- Request history:  A program activity.  Produces a letter asking an applicants
 physician to send the applicants medical records.
-- Response received?  A program activity.  Checks whether the applicant's medical
history has been received.
-- Check history:  A program activity.
Checks medical records and decides whether a medical examination is necessary.
-- Request medical expertise:  A program activity.  Produces a letter asking the
 applicant to make an appointment with the company physician.
-- Answer received?  A program activity:  Checks whether the applicant's medical
examination report has been received.
-- Check expertise results:  A program activity.  Checks the applicant's medical
examination report.
 "
End

FmcjProcessTemplateInContainerName 
  ProcessTemplateHdl                1
  BufferLength                      100
  XpValue                           "Default Data Structure"
End

FmcjProcessTemplateDeallocate 
  ProcessTemplateHdl                1
  XpRc                              FMC_OK
End


/* ---- If ProcessTemplateVectorHdl (VECTOR-Handle) is used, then the API
        will be applied to ALL object within a VECTOR ------------------ */

FmcjProcessTemplateCategory 
  ProcessTemplateVECTORHdl          1
  BufferLength                      100
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 MQ Workflow v31_347 Windows 95/NT: FMCTJCA1
Test case: EXAMPLE24
Wed Jul 22 16:20:58 1998
============================================================================
+++>
============================================================================
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 = USER2
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+++
============================================================================
FmcjExecutionServiceQueryProcessTemplates
parameter:  ExecutionServiceHdl = 1
parameter:  Filter = NULL
parameter:  SortCriteria = NAME DESC
parameter:  Threshold = 200
parameter:  ProcessTemplateVectorHdl = 1
..........Object Names Report...............................................
vector size = 17
0) Medical_Opinion
1) Life_Insurance
2) CreditRequest
3) ContainerProcessB
4) ContainerProcessA
5) ContainerProcess9
6) ContainerProcess8
7) ContainerProcess7
8) ContainerProcess6
9) ContainerProcess5
10) ContainerProcess4
11) ContainerProcess3
12) ContainerProcess2
13) ContainerProcess10
14) ContainerProcess1
15) ContainerProcess_x022
16) ContainerProcess_x012
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessTemplateVectorFirstElement
parameter:  ProcessTemplateVectorHdl = 1
parameter:  ProcessTemplateHdl = 1
..........Status Report.....................................................
ProcessTemplateHdl = 0x00C13480
============================================================================
FmcjProcessTemplateInContainerNeeded 
parameter:  ProcessTemplateHdl = 1
..........Value Report......................................................
AcValue = true
XpValue = TRUE
+++OK+++
============================================================================
FmcjProcessTemplateInitialInContainer 
parameter:  ProcessTemplateHdl = 1
parameter:  ReadWriteContainerHdl = 1
..........Status Report.....................................................
ReadWriteContainerHdl = 0x00C1A380
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessTemplateCreateAndStartInstance 
parameter:  ProcessTemplateHdl = 1
parameter:  InstanceName = Example24_Instance
parameter:  SystemGroup = NULL
parameter:  System = NULL
parameter:  ReadWriteContainerHdl = 1
parameter:  KeepName = FALSE
parameter:  ProcessInstanceHdl = 1
..........Status Report.....................................................
ProcessInstanceHdl = 0x00C14500
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessTemplateRoleNameIsNull 
parameter:  ProcessTemplateHdl = 1
..........Value Report......................................................
AcValue = true
XpValue = TRUE
+++OK+++
============================================================================
FmcjProcessTemplateCategory 
parameter:  ProcessTemplateHdl = 1
parameter:  BufferLength = 100
..........Value Report......................................................
AcValue = "Sales_and_underwriting"
XpValue = "Sales_and_underwriting"
+++OK+++
============================================================================
FmcjProcessTemplateDescription 
parameter:  ProcessTemplateHdl = 1
parameter:  BufferLength = 500
..........Value Report......................................................
AcValue = "Medical opinion"
XpValue = "Medical opinion"
+++OK+++
============================================================================
FmcjProcessTemplateName 
parameter:  ProcessTemplateHdl = 1
parameter:  BufferLength = 100
..........Value Report......................................................
AcValue = "Medical_Opinion"
XpValue = "Medical_Opinion"
+++OK+++
============================================================================
FmcjProcessTemplateCreationTime 
parameter:  ProcessTemplateHdl = 1
parameter:  DateTimeHdl = 1
..........Value Report......................................................
AcValue = "7/22/98 1:24:27 PM"
XpValue = Expected value missing
============================================================================
FmcjProcessTemplateLastModificationTime 
parameter:  ProcessTemplateHdl = 1
parameter:  DateTimeHdl = 1
..........Value Report......................................................
AcValue = "7/22/98 1:24:27 PM"
XpValue = Expected value missing
============================================================================
FmcjProcessTemplateIcon 
parameter:  ProcessTemplateHdl = 1
parameter:  BufferLength = 100
..........Value Report......................................................
AcValue = "FMCBPRC"
XpValue = "FMCBPRC"
+++OK+++
============================================================================
FmcjProcessTemplateIsComplete 
parameter:  ProcessTemplateHdl = 1
..........Value Report......................................................
AcValue = false
XpValue = FALSE
+++OK+++
============================================================================
FmcjProcessTemplateDocumentation 
parameter:  ProcessTemplateHdl = 1
parameter:  BufferLength = 4097
..........Value Report......................................................
AcValue = ""
XpValue = ""
+++OK+++
============================================================================
FmcjProcessTemplateRefresh 
parameter:  ProcessTemplateHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessTemplateIsComplete 
parameter:  ProcessTemplateHdl = 1
..........Value Report......................................................
AcValue = true
XpValue = TRUE
+++OK+++
============================================================================
FmcjProcessTemplateDocumentation 
parameter:  ProcessTemplateHdl = 1
parameter:  BufferLength = 4097
..........Value Report......................................................
AcValue = "PURPOSE:  The Medical Opinion process routes a request
for the medical history of an applicant for life insurance through the Underwriting
department.
OUTPUT:  Produces the following items:
-- A letter to the applicant's physician requesting the applicant's complete medical
history
-- If an underwriter decides a medical examination is necessary, a letter to the
 applicant asking the applicant to make an appointment with the company physician
STRUCTURE OF MODEL:  Activities route a request for a medical opinion through the
Underwriting department.  An underwriter sends a letter to the applicant's physician
asking for the applicant's complete medical history. After the medical
history is received,
an underwriter decides whether the applicant should be examined by the com
pany physician.  If not, the underwriter decides whether to recommend acceptance
 or rejection of the application, and the Medical Opinion process is complete.
If so, an under
writer writes a letter to the applicant requesting that the applicant make an appointment
with the company physician.  After the company physician's report is
received, an underwriter checks it and decides whether to recommend acceptance or
rejection of
the application.
ACTIVITIES:
-- Request history:  A program activity.  Produces a letter asking an applicants
 physician to send the applicants medical records.
-- Response received?  A program activity.  Checks whether the applicant's medical
history has been received.
-- Check history:  A program activity.
Checks medical records and decides whether a medical examination is necessary.
-- Request medical expertise:  A program activity.  Produces a letter asking the
 applicant to make an appointment with the company physician.
-- Answer received?  A program activity:  Checks whether the applicant's medical
examination report has been received.
-- Check expertise results:  A program activity.  Checks the applicant's medical
examination report.
 "
XpValue = "PURPOSE:  The Medical Opinion process routes a request
for the medical history of an applicant for life insurance through the Underwriting
department.
OUTPUT:  Produces the following items:
-- A letter to the applicant's physician requesting the applicant's complete medical
history
-- If an underwriter decides a medical examination is necessary, a letter to the
 applicant asking the applicant to make an appointment with the company physician
STRUCTURE OF MODEL:  Activities route a request for a medical opinion through the
Underwriting department.  An underwriter sends a letter to the applicant's physician
asking for the applicant's complete medical history. After the medical
history is received,
an underwriter decides whether the applicant should be examined by the com
pany physician.  If not, the underwriter decides whether to recommend acceptance
 or rejection of the application, and the Medical Opinion process is complete.
If so, an under
writer writes a letter to the applicant requesting that the applicant make an appointment
with the company physician.  After the company physician's report is
received, an underwriter checks it and decides whether to recommend acceptance or
rejection of
the application.
ACTIVITIES:
-- Request history:  A program activity.  Produces a letter asking an applicants
 physician to send the applicants medical records.
-- Response received?  A program activity.  Checks whether the applicant's medical
history has been received.
-- Check history:  A program activity.
Checks medical records and decides whether a medical examination is necessary.
-- Request medical expertise:  A program activity.  Produces a letter asking the
 applicant to make an appointment with the company physician.
-- Answer received?  A program activity:  Checks whether the applicant's medical
examination report has been received.
-- Check expertise results:  A program activity.  Checks the applicant's medical
examination report.
 "
+++OK+++
============================================================================
FmcjProcessTemplateInContainerName 
parameter:  ProcessTemplateHdl = 1
parameter:  BufferLength = 100
..........Value Report......................................................
AcValue = "Default Data Structure"
XpValue = "Default Data Structure"
+++OK+++
============================================================================
FmcjProcessTemplateDeallocate 
parameter:  ProcessTemplateHdl = 1
..........RC Report.........................................................
AcRc = FMC_OK = 0
XpRc = FMC_OK
+++OK+++
============================================================================
FmcjProcessTemplateCategory 
parameter:  ProcessTemplateVectorHdl = 1
parameter:  BufferLength = 100
..........Value Report......................................................
0) Sales_and_underwriting
1) Sales_and_underwriting
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
12) Container2
13)
14) Container1
15)
16)
============================================================================
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+++
============================================================================
FmcjProcessTemplateVectorDeallocate( 1 ) ended with RC = 0
FmcjProcessInstanceDeallocate( 1 ) ended with RC = 0
FmcjReadWriteContainerDeallocate( 1 ) ended with RC = 0

Cleanup done by Test Tool
============================================================================
====== Test case ended normally ============================================