Pipeline input not connected exception

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pipeline input not connected exception

Mark.El
Hi,

I have 2 instance variables in an xform that I want to pass into a xpl file to be processed there. Is this possible?

If it is possible could someone please help me with the correct syntax?

Here is an example of what I am trying to do...

Please note I have altered the below to simplify the example, and that param1 and param2 NEED to be separate instances, as param2 is feedback from another submission to a webservice.

Whenever I run this example I get a Exception...

 Exception at line 8, column 46 of oxf:/apps/ofbiz/simple-workflow.xpl
org.orbeon.oxf.common.ValidationException: line 8, column 46 of oxf:/apps/ofbiz/simple-workflow.xpl: Pipeline input "param1" is not connected
oxf:/apps/ofbiz/simple-workflow.xpl, line 8, column 46: Pipeline input "param1" is not connected


Any help would be very much appreciated

Regards

Mark

<!-- Page Flow.xml -->

<page path-info="/ofbiz/simple-workflow" view="simple-workflow.xhtml"/>
   
 <page path-info="/ofbiz/simple-workflow-step" model="simple-workflow.xpl">
        <setvalue ref="/param1" parameter="param1"/>
    <setvalue ref="/param2" parameter="param2"/>   
    </page>

<!-- simple-workflow.xhtml -->

<xforms:model>
            <xforms:instance id="param1">
                <contact>
                    <name></name>
                    <email></email>
                </contact>
            </xforms:instance>
           
            <xforms:instance id="param2">
                <hobbies>
                       <hobby />
                </hobbies>
            </xforms:instance>
          
           <xforms:instance id="workflow-response">
                <data />
          </xforms:instance>    

           <xforms:submission id="second-step-submission" method="post"
                action="/ofbiz/simple-workflow-step" ref="instance('ws-response')"
                replace="instance" instance="workflow-response">
                <xforms:resource value="instance('param1')" parameter="param1" />
                <xforms:resource value="instance('param2')" parameter="param2" />
                <xforms:message level="modal" ev:event="xforms-submit-error">error on 2nd step</xforms:message>
                <xforms:message level="modal" ev:event="xforms-submit-done">done 2nd step</xforms:message>
            </xforms:submission>

</xforms:model>

<!-- simple-workflow.xpl -->

<?xml version="1.0" encoding="UTF-8" ?>
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:oxf="http://www.orbeon.com/oxf/processors"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
    <p:param name="param1" type="input"/>
    <p:param name="param2" type="input"/>
       
    <p:param name="data" type="output"/>
  
    <p:processor name="oxf:debug">
        <p:input name="config">
            <config>Debug Info</config>
        </p:input>
        <p:input name="data" href="#param1">
           
        </p:input>
        <p:output name="data" id="emp"/>
    </p:processor>
   
   
        <p:processor name="oxf:xslt">
        <p:input name="data" href="#param1"/>
        <p:input name="target" href="#emp"/>
        <p:input name="config">
     <workflow-response xsl:version="2.0">
            <xsl:value-of select="doc('input:email')"/>
         </workflow-response>
        </p:input>
        <p:output name="data" ref="data"/>
    </p:processor>

</p:config>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline input not connected exception

Mark.El
Hi,

I have manage to get around this issue...  by making a new model instance which has param1 and param2 as elements of param3... what I did to get param2 to be updated from the web service was to add actions on the submit-done event to update my param3... it seems to work well enough....

If anyone wants more info please let me know..

Regards

Mark

On Mon, Mar 3, 2008 at 12:20 PM, Mark Ellul <[hidden email]> wrote:
Hi,

I have 2 instance variables in an xform that I want to pass into a xpl file to be processed there. Is this possible?

If it is possible could someone please help me with the correct syntax?

Here is an example of what I am trying to do...

Please note I have altered the below to simplify the example, and that param1 and param2 NEED to be separate instances, as param2 is feedback from another submission to a webservice.

Whenever I run this example I get a Exception...

 Exception at line 8, column 46 of oxf:/apps/ofbiz/simple-workflow.xpl
org.orbeon.oxf.common.ValidationException: line 8, column 46 of oxf:/apps/ofbiz/simple-workflow.xpl: Pipeline input "param1" is not connected
oxf:/apps/ofbiz/simple-workflow.xpl, line 8, column 46: Pipeline input "param1" is not connected


Any help would be very much appreciated

Regards

Mark

<!-- Page Flow.xml -->

<page path-info="/ofbiz/simple-workflow" view="simple-workflow.xhtml"/>
   
 <page path-info="/ofbiz/simple-workflow-step" model="simple-workflow.xpl">
        <setvalue ref="/param1" parameter="param1"/>
    <setvalue ref="/param2" parameter="param2"/>   
    </page>

<!-- simple-workflow.xhtml -->

<xforms:model>
            <xforms:instance id="param1">
                <contact>
                    <name></name>
                    <email></email>
                </contact>
            </xforms:instance>
           
            <xforms:instance id="param2">
                <hobbies>
                       <hobby />
                </hobbies>
            </xforms:instance>
          
           <xforms:instance id="workflow-response">
                <data />
          </xforms:instance>    

           <xforms:submission id="second-step-submission" method="post"
                action="/ofbiz/simple-workflow-step" ref="instance('ws-response')"
                replace="instance" instance="workflow-response">
                <xforms:resource value="instance('param1')" parameter="param1" />
                <xforms:resource value="instance('param2')" parameter="param2" />
                <xforms:message level="modal" ev:event="xforms-submit-error">error on 2nd step</xforms:message>
                <xforms:message level="modal" ev:event="xforms-submit-done">done 2nd step</xforms:message>
            </xforms:submission>

</xforms:model>

<!-- simple-workflow.xpl -->

<?xml version="1.0" encoding="UTF-8" ?>
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:oxf="http://www.orbeon.com/oxf/processors"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
    <p:param name="param1" type="input"/>
    <p:param name="param2" type="input"/>
       
    <p:param name="data" type="output"/>
  
    <p:processor name="oxf:debug">
        <p:input name="config">
            <config>Debug Info</config>
        </p:input>
        <p:input name="data" href="#param1">
           
        </p:input>
        <p:output name="data" id="emp"/>
    </p:processor>
   
   
        <p:processor name="oxf:xslt">
        <p:input name="data" href="#param1"/>
        <p:input name="target" href="#emp"/>
        <p:input name="config">
     <workflow-response xsl:version="2.0">
            <xsl:value-of select="doc('input:email')"/>
         </workflow-response>
        </p:input>
        <p:output name="data" ref="data"/>
    </p:processor>

</p:config>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws