Control follow-up processes
NOTE
Both commands are only available in the primedocs client.
Â
By the command DefaultProcess and/or Print a follow-up process can be started in primedocs. This command can be used as an event for any process, for example as a trigger for third party programs.
<OneOffixxConnectBatch xmlns="http://schema.oneoffixx.com/OneOffixxConnectBatch/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Entries>
<OneOffixxConnect>
<Arguments>
<TemplateId>6bb49520-1ebd-4f68-bb5f-02f46a9e1ec8</TemplateId>
<LanguageLcid>2055</LanguageLcid>
</Arguments>
<Commands>
<Command Name="ConvertToDocument" />
<Command Name="DefaultProcess">
<Parameters>
<Add key="Start">false</Add>
</Parameters>
</Command>
<Command Name="SaveAs">
<Parameters>
<Add key="Filename">C:\Temp\NewDocument.docx</Add>
<Add key="CreateFolder">true</Add>
<Add key="Overwrite">true</Add>
</Parameters>
</Command>
<Command Name="Print" />
</Commands>
</OneOffixxConnect>
</Entries>
</OneOffixxConnectBatch>
When using the Print command, the default Windows printer is always selected.
<OneOffixxConnectBatch xmlns="http://schema.oneoffixx.com/OneOffixxConnectBatch/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Entries>
<OneOffixxConnect>
<Arguments>
<TemplateId>6bb49520-1ebd-4f68-bb5f-02f46a9e1ec8</TemplateId>
<LanguageLcid>2055</LanguageLcid>
</Arguments>
<Commands>
<Command Name="ConvertToDocument" />
<Command Name="DefaultProcess">
<Parameters>
<Add key="Start">false</Add>
</Parameters>
</Command>
<Command Name="SaveAs">
<Parameters>
<Add key="Filename">C:\Temp\NewDocument.docx</Add>
<Add key="CreateFolder">true</Add>
<Add key="Overwrite">true</Add>
</Parameters>
</Command>
<Command Name="Print" />
</Commands>
</OneOffixxConnect>
</Entries>
</OneOffixxConnectBatch>
By specifying the Type
PDF within the SaveAs command, a PDF is created directly.
<OneOffixxConnectBatch xmlns="http://schema.oneoffixx.com/OneOffixxConnectBatch/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Entries>
<OneOffixxConnect>
<Arguments>
<TemplateId>6bb49520-1ebd-4f68-bb5f-02f46a9e1ec8</TemplateId>
<LanguageLcid>2055</LanguageLcid>
</Arguments>
<Commands>
<Command Name="SaveAs">
<Parameters>
<Add key="Type">PDF</Add>
<Add key="Filename">c:\OneOffixxConnectTest\OneOffixxConnect.pdf</Add>
<Add key="Overwrite">true</Add>
<Add key="CreateFolder">true</Add>
</Parameters>
</Command>
<Command Name="DefaultProcess">
<Parameters>
<Add key="Start">false</Add>
</Parameters>
</Command>
</Commands>
</OneOffixxConnect>
</Entries>
</OneOffixxConnectBatch>
Templates usually have the status NewDocument
. If the status should be changed to SavedDocument the parameter AllowUpdateDocumentPart
must be activated. See the SaveAs command for more information.
Â
PrimeSoft AG, Bahnhofstrasse 4, 8360 Eschlikon, Switzerland