This content has been marked as final. Show 6 replies
There is some detail that is missing here. In order to successfully complete a doCallIds request, you have to include some additional information - specifically a request type and the associated name/value pairs that are used in that request type to complete your request by Docupresentment. You mention that you need to "access the documents" created and displayed in Documaker Interactive. Can you elaborate on what is meant by "access the documents"? Do you mean to generate a PDF of the documents?
Please explain your use case and what exactly is needed.
My Requirement is as follows:
a. I want access from BPM process using Webservices the Template which are created and stored in Documaker.
b. I also want to see the document using whatever values I am passing in it for filling up the template.
I can create template using Documaker Studio and can store the same in Documaker DB (DMKR Admin and DMKR Asline). Now I can access those temlplate externally from another BPM process.
There are some clarifications that are needed. First is terminology - a template is a resource that is created in Documaker Studio and then deployed to a library. A template is then used in a transaction as part of a form (or a form in total), which can be populated with variable data from an external source (usually an "extract" data file). In programming parlance, a template is like a prototype, and then is implemented/instantiated in a form within a transaction.
So given that clarification, we need to understand what exactly you wish to retrieve via the web service - it sounds like your goal is obtain a transaction that has been submitted into Document Factory for processing - e.g. a work-in-process (WIP) transaction. Typically what happens is a job (containing extract data) is submitted to the hot directory or via the doPublishFromImport web service. Document Factory then processes the job into one or more transactions. If the job can be processed to completion, then Document Factory will change the JOBSTATUS to an appropriate value (if it is processed all the way to generate a print stream, the final JOBSTATUS will be 999). If the transaction is incomplete due to missing required data or other rules which cause the document to be routed to work-in-process, the JOBSTATUS will be 290.
The next part of the equation is to use the doCallIds service to submit a request to Docupresentment. With this service you can submit any request to Docupresentment. The documentation in the Documaker Enterprise Edition Administration Guide only shows the schema and a sample "SSS" request, which is simply a test. You will have to send the appropriate request type and name/value pairs.
You need to review the Documaker Bridge guide (http://docs.oracle.com/cd/E22582_01/documakerbridge.pdf for 12.1 or http://docs.oracle.com/cd/E17552_01/documakerbridge.pdf for 12.0) for a list of the request types you can use with Docupresentment. I recommend you start with DPRGetWipFormset and DPRPrint for generating a PDF of a transaction in WIP.
Currently there isn't an expedient method to obtain the print streams from completed (999) transactions with web services that I am aware of, however if you have access to the database then you can get the print streams directly from the PUBS table.
If this doesn't quite answer your question then you'll need to supply more information as to your requirements (e.g. "see the document using whatever values I am passing in it for filling up the template" isn't quite clear - do you want to see a PDF of the transaction in WIP or completed? Do you want to display the formset for editing?)
Thanks for the info. Please correct my understanding:
a. The first part is clear that the template is created in Documaker and it is deployed in a library.
b. Now I will send the file as it is to Documaker from Application Layer for hot deployment of with data in xml. OR we can call the 'doPublishFromImport' webservice to do the same. --- Need help to submit the same in a correct format. I am attaching a sample successful SOAP which is successful.
c. Probably, my requirement doesn't require 'doCallIds' webservice.
d. We will not get access to DB in original implementation. Hence we can't access the same and transfer it to PDF.
e. Is there any way out to see the PDF of the transaction in WIP or completed or to display the formset for editing? Please help with some sample documents.
Sample of SOAP which was successfully passing through 'doPublishFromImport':
<DoPublishFromImportRequest xmlns="oracle/documaker/schema/ws/publishing" xmlns:com="oracle/documaker/schema/ws/publishing/common" xmlns:com1="oracle/documaker/schema/common" xmlns:req="oracle/documaker/schema/ws/publishing/doPublishFromImport/v1/request" xmlns:v1="oracle/documaker/schema/ws/publishing/doPublishFromImport/v1">
<!--You have a CHOICE of the next 2 items at this level-->
<!--You have a CHOICE of the next 3 items at this level-->
<!--1 or more repetitions:-->
Qns Regarding the SOAP:
a. Do we need to send the JobUniqueID with this XML? Where from we will be receiving the same? Please be mentioned here, we are from external application. There will be very restricted access to the Documaker Server and DB.
b. Where from we will be receiving the Name of the Job File? Please be mentioned here, we are from external application. There will be very restricted access to the Documaker Server and DB.
c. The location of the 'extrfile.xml' file should be where we are going to keep the data file xml.
I'll try to answer some of these questions.
b. Now I will send the file as it is to Documaker from Application Layer for hot deployment of with data in xml. OR we can call the 'doPublishFromImport' webservice to do the same. --- Need help to submit the same in a correct format. I am attaching a sample successful SOAP which is successful.You have at least 3 options to get this done:
1. Deposit file in hot directory - this assumes your application has write access to this directory.
2. Submit doPublishFromImport request with path/name of file - this also assumes the application has write access to the directory/file, and that Documaker has read access to the file.
3. Submit doPublishFromImport request with the extract data embedded as shown below. Note that the data must be base-64 encoded.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pub="oracle/documaker/schema/ws/publishing" xmlns:com="oracle/documaker/schema/ws/publishing/common" xmlns:v1="oracle/documaker/schema/ws/publishing/doPublishFromImport/v1" xmlns:com1="oracle/documaker/schema/common" xmlns:req="oracle/documaker/schema/ws/publishing/doPublishFromImport/v1/request">
<com1:Binary>***base-64 encoded extract data goes here**</com1:Binary>
Is there any way out to see the PDF of the transaction in WIP or completed or to display the formset for editing? Please help with some sample documents.This would be where you need to use the doCallIds function. Not all Docupresentment functions are exposed as web service methods so the doCallIds method is used as a gateway. You would need to first determine the appropriate Docupresentment function (review the Documaker Bridge documentation I mentioned in a previous post), and then invoke it via doCallIds.
To display the formset for editing - there is an entire framework that you probably haven't accounted for (how do you save the transaction, etc) - there is a WIPedit Plugin that facilitates displaying WIP transactions for editing. If you are licensed for Documaker Interactive then I suggest you use that instead. For more help you'll need Oracle Consulting - this is too deep a topic to continue here.
To generate a PDF of a WIP transaction, consider using the Docupresentment basic request "WFS" which looks like this:
You'll need to look up the DPRGetWipFormset and DPRPrint items to know what you need to send - generally it's all the WIP key identifiers (Key1, Key2, KeyID, etc). Then it will send the PDF back on the request. If you need further help you might have to look into Oracle Consulting help - this is about as far as I can go here.
Do we need to send the JobUniqueID with this XML? Where from we will be receiving the same? Please be mentioned here, we are from external application. There will be very restricted access to the Documaker Server and DB.No, the JobUniqueId is not required - see previous example. The response will contain the transaction locators (JOB_ID, docId, TRN_ID).
b. Where from we will be receiving the Name of the Job File? Please be mentioned here, we are from external application. There will be very restricted access to the Documaker Server and DB.The response from the doPublishFromImport will indicate the job identifiers. Here is an example (based on the example request posted up above). Key items indicated in bold
<ns9:RouteDesc>DM20030: the following required fields are missing data: AGENTCITYSTATEZIP,Premium Amount.</ns9:RouteDesc>
c. The location of the 'extrfile.xml' file should be where we are going to keep the data file xml.Ideally since this is a web service you would not want the service to write to the same file. What happens if there are multiple requests? Use the example that send the data with the request unless you plan to write the extract data to uniquely-named files.
Hope this helps.