From efd6cd7d7704259c5b86f49bd2ad2a4c0e154446 Mon Sep 17 00:00:00 2001 From: Shannon Whitley Date: Sat, 14 May 2022 14:35:49 -0700 Subject: [PATCH] v1.2.0 - xslt for option A to support Boomerang chaining. - Validate Only mode --- Boomerang/.classpath | 6 +-- Boomerang/ws/WSAR-INF/assembly-diagram.xml | 45 ++++++++++++----- Boomerang/ws/WSAR-INF/assembly.xml | 57 ++++++++++++++++------ 3 files changed, 74 insertions(+), 34 deletions(-) diff --git a/Boomerang/.classpath b/Boomerang/.classpath index bd149b5..9baf186 100644 --- a/Boomerang/.classpath +++ b/Boomerang/.classpath @@ -1,11 +1,6 @@ - - - - - @@ -16,5 +11,6 @@ + diff --git a/Boomerang/ws/WSAR-INF/assembly-diagram.xml b/Boomerang/ws/WSAR-INF/assembly-diagram.xml index b7df94c..0dee996 100644 --- a/Boomerang/ws/WSAR-INF/assembly-diagram.xml +++ b/Boomerang/ws/WSAR-INF/assembly-diagram.xml @@ -77,7 +77,7 @@ - + @@ -91,9 +91,15 @@ + + + + + + - + @@ -114,10 +120,6 @@ - - - - @@ -142,10 +144,6 @@ - - - - @@ -164,10 +162,10 @@ - + - + @@ -220,6 +218,22 @@ + + + + + + + + + + + + + + + + @@ -234,6 +248,7 @@ + @@ -266,7 +281,7 @@ - + @@ -284,4 +299,8 @@ + + + + diff --git a/Boomerang/ws/WSAR-INF/assembly.xml b/Boomerang/ws/WSAR-INF/assembly.xml index b3a362f..fffedf2 100644 --- a/Boomerang/ws/WSAR-INF/assembly.xml +++ b/Boomerang/ws/WSAR-INF/assembly.xml @@ -11,7 +11,7 @@ xmlns:xdiff="urn:com.workday/esb/xdiff" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + @@ -19,6 +19,11 @@ text + + + 1265f2f1996d4325b898f2eafc88b589 + + 1265f2f1996d4325b898f2eafc88b589 @@ -47,9 +52,14 @@ c3709e92a44647e29a49074d917a4609 - 555040d77d971000318dea3c359301c7 + a1fec0c52911100020608187720d54d3 + + + boolean + + @@ -68,14 +78,17 @@ props['input.document.wid'] = (props['input.document.wids'] != empty ? props['input.document.wids'].get(0) : null) props['input.document.entry'] = (props['input.document.wid'] != null ? lp.getID('b - Input Document', 'Document_ID', props['input.document.wid']) : null) props['input.document.file.name'] = (props['input.document.wid'] != null ? lp.getDescriptor('b - Input Document', props['input.document.wid']) : null) + props['validate.only'] = lp.getSimpleData('Validate Only') + props['validate.only.text'] = (props['validate.only'] == 1 ? "Yes" : "No") - props['custom.xslt.wids'] = lp.getWIDs('c - Custom Transformation') + vars['custom.transform.string'] = (lp.getWIDs('c - Custom Transformation') != empty ? 'c - Custom Transformation' : 'a - Custom Transformation') + props['custom.xslt.wids'] = (lp.getWIDs(vars['custom.transform.string'].text) != empty ? lp.getWIDs(vars['custom.transform.string'].text) : null) props['custom.xslt.wid'] = (props['custom.xslt.wids'] != empty ? props['custom.xslt.wids'].get(0) : null) - props['custom.xslt.entry'] = (props['custom.xslt.wid'] != null ? lp.getID('c - Custom Transformation', 'Document_ID', props['custom.xslt.wid']) : null) - props['custom.xslt.file.name'] = (props['custom.xslt.wid'] != null ? lp.getDescriptor('c - Custom Transformation', props['custom.xslt.wid']) : null) - props['custom.xslt.reference'] = lp.getReferenceData('c - Custom Transformation', 'Document_ID') + props['custom.xslt.entry'] = (props['custom.xslt.wid'] != null ? lp.getID(vars['custom.transform.string'].text, 'Document_ID', props['custom.xslt.wid']) : null) + props['custom.xslt.file.name'] = (props['custom.xslt.wid'] != null ? lp.getDescriptor(vars['custom.transform.string'].text, props['custom.xslt.wid']) : null) + props['custom.xslt.reference'] = lp.getReferenceData(vars['custom.transform.string'].text, 'Document_ID') props['report.name'] = (lp.getWIDs('c - Custom Report') != empty ? lp.getReferenceData('c - Custom Report', 'Custom_Report_ID').replace(' ', '_') : null) props['report.input'] = (lp.getWIDs('c - Custom Report') != empty ? 'customreport2/' + context.getCustomerId() + '/' + parts[0].xpath('string(//wd:ID[@wd:type="Custom_Report_ID"]/@wd:parent_id)') + '/' + props['report.name'] : null) props['web.service.application'] = lp.getDescriptor('Web Service', lp.getWIDs('Web Service').get(0)).replace(' (Public)','').replace(' ','_') @@ -126,7 +139,7 @@ context.getProperty('Detail') = @{context.getProperty('Detail')} - + @@ -156,11 +169,12 @@ context.getProperty('Detail') = @{context.getProperty('Detail')} props['record.count'] = @{props['record.count']} -vars['data.request'] = @{vars['data.request'].text} +vars['data.request'] = @{vars['data.request'].text} +props['validate.only'] = @{props['validate.only']} - + @@ -182,17 +196,18 @@ vars['data.request'] = @{vars['data.request'].text} props['file.name'] = (vars['wd.retrieve.variable'].fileName.contains(props['event.document.contains']) == true ? vars['wd.retrieve.variable'].fileName : null) + - + - + @@ -239,16 +254,15 @@ vars['data.request'] = @{vars['data.request'].text} - - + + props['file.count'] = props['file.count'] + 1 - props['file.name'] = props['report.name'] + ".txt"props['index.of.separator'] = props['custom.xslt.entry'].indexOf("/")props['custom.xslt.collection'] = props['custom.xslt.entry'].substring(0, props['index.of.separator'])props['custom.xslt.entry'] = props['custom.xslt.entry'].substring( props['index.of.separator'] + 1) + props['file.name'] = props['report.name'] + ".txt" - props['file.name'] != empty + props['file.name'] != empty - @@ -270,6 +284,17 @@ vars['data.request'] = @{vars['data.request'].text} + + + props['index.of.separator'] = props['custom.xslt.entry'].indexOf("/")props['custom.xslt.collection'] = props['custom.xslt.entry'].substring(0, props['index.of.separator'])props['custom.xslt.entry'] = props['custom.xslt.entry'].substring( props['index.of.separator'] + 1) + + + + + + + + \ No newline at end of file