diff --git a/Processes/xml/XMLDELETE.process b/Processes/xml/XMLDELETE.process index 2d11f64..9801c27 100644 --- a/Processes/xml/XMLDELETE.process +++ b/Processes/xml/XMLDELETE.process @@ -1,5 +1,6 @@ - + + Processes/xml/XMLDELETE.process Start @@ -14,159 +15,119 @@ 149 258 - - - - - - - - - - - - - - - - - + + + + + End - 1414 - 260 + + + + + + + + + + + 1010 + 262 http://xmlns.example.com/1719483544323 - - com.tibco.plugin.xml.XMLTransformActivity - ae.activities.XMLTransformActivity - 673 - 260 - - binary - TibcoXML - /Resources/xslt transformers/xsltDelete.xslt - - - - - - - - - - - - - - - - - - - - com.tibco.plugin.file.FileReadActivity ae.activities.FileReadActivity - 394 - 259 + 301 + 257 - binary + text - + - + - + + + com.tibco.plugin.xml.XMLParseActivity + ae.activities.XMLParseActivity + 461 + 259 + + text + default + true + + + + + + + + + + com.tibco.plugin.mapper.MapperActivity + ae.activities.MapperActivity + 616 + 266 + + + + + + + + + + + com.tibco.plugin.xml.XMLRendererActivity + ae.activities.XMLRendererActivity + 777 + 258 + + text + false + + + + com.tibco.plugin.file.FileWriteActivity ae.activities.FileWriteActivity - 956 - 258 + 893 + 260 - binary + text None - + - + - - - - - - - - com.tibco.plugin.waitnotify.NotifyActivity - ae.activities.notifyActivity - 1236 - 258 - - /Resources/configurations/Notify Configuration.sharednotify - - - - - - - - - + + + + com.tibco.pe.core.GenerateErrorActivity ae.activities.throw - 676 - 116 + 460 + 88 - - - - - + - - Transform XML - Write File - is file shorter - Default - -16777216 - xpath - string-length($Read-File/ns2:ReadActivityOutputBinaryClass/fileContent/binaryContent)>string-length($Transform-XML/xmlBytes/xmlOutput) - - - Read File - Transform XML - Default - -16777216 - always - - - Write File - Notify - Default - -16777216 - always - - - Notify - End - Default - -16777216 - always - Start Read File @@ -175,12 +136,47 @@ always - Transform XML + Read File + Parse XML + Default + -16777216 + always + + + Parse XML + remove author with given id + Default + -16777216 + otherwise + + + remove author with given id + Render XML + Default + -16777216 + always + + + Render XML + Write File + Default + -16777216 + always + + + Write File + End + Default + -16777216 + always + + + Parse XML Generate Error - file is not changed + author with given id does not exist Default -16777216 xpath - string-length($Read-File/ns2:ReadActivityOutputBinaryClass/fileContent/binaryContent)<=string-length($Transform-XML/xmlBytes/xmlOutput) + not(boolean($Parse-XML/pfx:authors/pfx:author[@id=$Start/root/id])) \ No newline at end of file diff --git a/Resources/databases/databaseXML.xml b/Resources/databases/databaseXML.xml index 6ee5718..612064e 100644 --- a/Resources/databases/databaseXML.xml +++ b/Resources/databases/databaseXML.xml @@ -1,10 +1,10 @@ - trestupdate - asdf - 54 - 2000-12-01 - 2000-12-01 + piwo + harnas + 12 + 2000-12-12 + 2000-12-12 \ No newline at end of file