ResultProcessor

From GreenVulcano Wiki
Revision as of 11:16, 13 May 2014 by G.dimaio (talk | contribs) (Created page with "==Description== Defines SubFlows output aggregation policy: ** none : return a java.util.List containig the SubFlows output ** XMLAggregate : aggregate the SubFlow out...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Defines SubFlows output aggregation policy:

    • none  : return a java.util.List containig the SubFlows output
    • XMLAggregate  : aggregate the SubFlow output as XML
    • JavaScript  : use JavaScript to process a java.util.List containig the SubFlows output
    • OGNLScript  : use OGNL to process a java.util.List containig the SubFlows output

If isn't defined a processor the SubFlows output is intended as GVBuffer.output content or an Exception. The JavaScript and OGNLScript processor receives as input a list of it.greenvulcano.gvesb.core.flow.parallel.Result instances that wrapps the SubFlows input and output.

VulCon / GV Console Configuration

The following table shows the ResultProcessor element's attributes:

Attribute Type Description
processor-input required Defines the input to pass to the specific processor:
   - XMLAggregate
       - only-object   : array of output valid GVBuffer.object content, in the order of instantiation of SubFlows
       - only-gvbuffer : same as above
       - gvbuffer-and-error : same as above
       - object-and-error   : same as above
   - JavaScript and OGNLScript
       - only-object : java.util.List of output valid GVBuffer.object content, in the order of instantiation of SubFlows
       - only-gvbuffer : java.util.List of output valid GVBuffer (wrapped as Result object), in the order of instantiation of SubFlows
       - gvbuffer-and-error : java.util.List of output valid GVBuffer or Exception (wrapped as Result object), in the order of instantiation of SubFlows
       - object-and-error   : java.util.List of output valid GVBuffer.object content or Exception , in the order of instantiation of SubFlows

The number of elements in the array will depend on several factors related to parallel flow configuration and SubFlow execution.

If a processor is not defined, the output GVBuffer.object will contain the java.util.List as defined as input for JavaScript and OGNLScript but unwrapped.

fail-on-error required If true and any of the SubFlows output contains an Exception then the ResultProcessor returns an error.

Default to true.

Might contain the following elements:XMLAggregate|OGNLScript|JavaScript