Claims
- 1. A method for generating a program capable of invoking a flow of operations, wherein the program is capable of being initiated from an external call, comprising:
receiving as input a definition file defining a flow of operations; receiving as input mapping information defining input parameters to the flow of operations; processing the received definition file and mapping information to generate program statements within the program that when executed perform:
(i) setting input parameters to the flow of operations to values received from an external call to the program; (ii) invoking the flow of operations with the input parameters including values from the external call; and (iii) receiving output from the flow of operations and extracting at least one value from the received output to return to the external call.
- 2. The method of claim 1, wherein the flow of operations comprises one of Web services or a workflow.
- 3. The method of claim 1, wherein the flow of operations comprises a workflow, wherein the mapping information indicates methods used to set and retrieve input parameters to the workflow and information on output returned from the workflow.
- 4. The method of claim 3, wherein the program statements to set the input parameters include the methods indicated in the mapping information.
- 5. The method of claim 3, wherein the mapping information indicates a name of the workflow to invoke, and wherein the program statements to invoke the flow of operations comprises a call to the name of the workflow indicated in the mapping information.
- 6. The method of claim 3, wherein the mapping information indicates return values from the workflow, and wherein the program statements to extract output from the received output includes program statements to extract return values indicated in the mapping information to return to the external call.
- 7. The method of claim 1, wherein the external call is generated by a database program to invoke the flow of operations.
- 8. The method of claim 7, wherein the program including the generated statements comprises a User Defined Function (UDF) and wherein the database program includes Structured Query Language (SQL) statements.
- 9. The method of claim 7, wherein the mapping information includes information to map values received from the database program of a database data type to the input parameters to the flow of operations in a flow data type used by the flow of operations, and to map values in the flow data type received from the flow of operations to the database data type to return to the database program.
- 10. The method of claim 1, wherein at least one object oriented program class is required to call the program, further comprising:
generating a configuration script in response to processing the received definition file and mapping information to register the at least one required program class to enable an external program to make the external call to invoke the flow of operations.
- 11. A method for invoking a workflow, comprising:
receiving a call, from a database program, to invoke a workflow; invoking the workflow in response to the call; receiving output from the workflow; and returning output from the workflow to the database program.
- 12. The method of claim 11, wherein the database program initiating the call to invoke the workflow comprises at least one of a Structured Query Language (SQL) program or a database trigger initiating the call in response to a database event.
- 13. The method of claim 11, wherein the received call includes input parameters, wherein the workflow is invoked with workflow parameters including input parameters included with the call.
- 14. The method of claim 13, further comprising:
mapping the input parameters included with the call to workflow input parameters included with the invocation to the workflow.
- 15. The method fo claim 11, the steps of receiving the call, invoking the workflow, receiving the output, and returning the output are performed by a User Defined Function.
- 16. A system for generating a program capable of invoking a flow of operations, wherein the program is capable of being initiated from an external call, comprising:
means for receiving as input a definition file defining a flow of operations; means for receiving as input mapping information defining input parameters to the flow of operations; and means for processing the received definition file and mapping information to generate program statements within the program that when executed perform:
(i) setting input parameters to the flow of operations to values received from an external call to the program; (ii) invoking the flow of operations with the input parameters including values from the external call; and (iii) receiving output from the flow of operations and extracting at least one value from the received output to return to the external call.
- 17. The system of claim 16, wherein the flow of operations comprises a workflow, wherein the mapping information indicates methods used to set and retrieve input parameters to the workflow and information on output returned from the workflow.
- 18. The system of claim 16, wherein the external call is generated by a database program to invoke the flow of operations, wherein the mapping information includes information to map values received from the database program of a database data type to the input parameters to the flow of operations in a flow data type used by the flow of operations, and to map values in the flow data type received from the flow of operations to the database data type to return to the database program.
- 19. The system of claim 16, wherein at least one object oriented program class is required to call the program, further comprising:
means for generating a configuration script in response to processing the received definition file and mapping information to register the at least one required program class to enable an external program to make the external call to invoke the flow of operations.
- 20. A system for processing calls from a database program, comprising:
means for receiving a call, from the database program, to invoke a workflow; means for invoking the workflow in response to the call; means for receiving output from the workflow; and means for returning output from the workflow to the database program.
- 21. The system of claim 20, wherein the received call includes input parameters, wherein the workflow is invoked with workflow parameters including input parameters included with the call.
- 22 The system of claim 21, further comprising:
mapping the input parameters included with the call to workflow input parameters included with the invocation to the workflow.
- 23. An article of manufacture for generating a program capable of invoking a flow of operations, wherein the program is capable of being initiated from an external call, and wherein the article of manufacture causes operations to be performed, the operations comprising:
receiving as input a definition file defining a flow of operations; receiving as input mapping information defining input parameters to the flow of operations; processing the received definition file and mapping information to generate program statements within the program that when executed perform:
(i) setting input parameters to the flow of operations to values received from an external call to the program; (ii) invoking the flow of operations with the input parameters including values from the external call; and (iii) receiving output from the flow of operations and extracting at least one value from the received output to return to the external call.
- 24. The article of manufacture of claim 23, wherein the flow of operations comprises one of Web services or a workflow.
- 25. The article of manufacture of claim 23, wherein the flow of operations comprises a workflow, wherein the mapping information indicates methods used to set and retrieve input parameters to the workflow and information on output returned from the workflow.
- 26. The article of manufacture of claim 25, wherein the program statements to set the input parameters include the methods indicated in the mapping information.
- 27. The article of manufacture of claim 25, wherein the mapping information indicates a name of the workflow to invoke, and wherein the program statements to invoke the flow of operations comprises a call to the name of the workflow indicated in the mapping information.
- 28. The article of manufacture of claim 25, wherein the mapping information indicates return values from the workflow, and wherein the program statements to extract output from the received output includes program statements to extract return values indicated in the mapping information to return to the external call.
- 29. The article of manufacture of claim 23, wherein the external call is generated by a database program to invoke the flow of operations.
- 30. The article of manufacture of claim 29, wherein the program including the generated statements comprises a User Defined Function (UDF) and wherein the database program includes Structured Query Language (SQL) statements.
- 31. The article of manufacture of claim 29, wherein the mapping information includes information to map values received from the database program of a database data type to the input parameters to the flow of operations in a flow data type used by the flow of operations, and to map values in the flow data type received from the flow of operations to the database data type to return to the database program.
- 32. The article of manufacture of claim 23, wherein at least one object oriented program class is required to call the program, further comprising:
generating a configuration script in response to processing the received definition file and mapping information to register the at least one required program class to enable an external program to make the external call to invoke the flow of operations.
- 33. An article of manufacture for invoking a workflow, wherein the article of manufacture causes operations to be performed, the operations comprising:
receiving a call, from a database program, to invoke a workflow; invoking the workflow in response to the call; receiving output from the workflow; and returning output from the workflow to the database program.
- 34. The article of manufacture of claim 33, wherein the database program initiating the call to invoke the workflow comprises at least one of a Structured Query Language (SQL) program or a database trigger initiating the call in response to a database event.
- 35. The article of manufacture of claim 33, wherein the received call includes input parameters, wherein the workflow is invoked with workflow parameters including input parameters included with the call.
- 36. The article of manufacture of claim 35, further comprising:
mapping the input parameters included with the call to workflow input parameters included with the invocation to the workflow.
- 37. The article of manufacture of claim 33, the steps of receiving the call, invoking the workflow, receiving the output, and returning the output are performed by a User Defined Function.
RELATED APPLICATIONS
[0001] This patent application is a continuation-in-part of the copending and commonly assigned U.S. patent application, Ser. No. 09/968,353, filed on Sep. 28, 2001, which patent application is incorporated herein by reference in its entirety.
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
09968353 |
Sep 2001 |
US |
Child |
10407536 |
Apr 2003 |
US |