Complete approval process

Complete approval process

The advanced workflow component (in the other category), Complete approval process is a component, that has been added for installations, that have chosen to use versioning and combine that with approvals.

 

The workflow component outputs the result of the approval into the XML payload and this is a suggestion for implementation:

 

 

The parameter, approval outcome is the node into which the result of the approval is to be stored. This will affect the specified node of the payload. You can use this node e.g. to condition other subsequent workflow components e.g. to report the approval/rejection.

This workflow component should be executed after the component, Await approval in a workflow of the input typeStart approval process.

 

The payload looks like this:

<?xml version='1.0' encoding='UTF-8'?>
<changeRequest>
 <id>ID-1693228252119-0-1</id>
 <approvalFlowName>Standard</approvalFlowName>
 <username>TestUser</username>
 <resourceType>template</resourceType>
 <path>/test_template.ift</path>
 <additionalResources>
         <resource index='1'>
                 <resourceType>component</resourceType>
                 <path>/test_component.icmp</path>
         </resource>
 </additionalResources>
 <majorVersion>false</majorVersion>
 <description>This is a description of what was changed</description>
 <decision>Approve</decision>
 <approver>ApproverUser</approver>
 <approverComments>Looking very good</approverComments>
</changeRequest>

 

So you can e.g. report the approval/rejection back to the user, that changed the resource, as the user is found in the node: /changeRequest/username.

 

An example for an approval workflow can be found here.


    • Related Articles

    • Start approval process

      If you have setup InterFormNG2 to use versioning and combined that with approvals for one or multiple resource types, then you need to setup a workflow, which is able to process the approvals. Such a workflow is setup with the input type: Start ...
    • Await approval

      The advanced workflow component (in the other category), Await approval is a component, that has been added for installations, that have chosen to use versioning and combine that with approvals. The Await approval component has no parameters: This ...
    • Post-process spooled file

      As a part of spooled file processing in InterFormNG2 on the IBM i platform, you might want to delete, hold or move the input spooled file to let the end user know, that the specific spooled file has been successfully processed. You can also change a ...
    • Process spooled files with variable CPI attribute

      Normal spooled files can be loaded and processed directly in InterFormNG2, but there is one deviation from this and this concerns spooled files where the attribute, Variable CPI is Y. You can identify such spooled files if you select option ...
    • Versioning of resources

      One optional feature in InterFormNG2 is versioning of resources. The versioning features makes it possible to maintain a version history on resources in the library. Versioning of resources is a way to keep track of changes to resources and this can ...