Hi Shiva,

I tried it now and it works fine. Earlier I was directly copying the
content from the sample page I guess it adds some hidden characters. That
caused the issue. Thanks!

Regards,

On Fri, Oct 10, 2014 at 4:40 PM, Shiva Balachandran <[email protected]> wrote:

> Hi Himasha,
>
> I downloaded a fresh pack and followed the tutorial, added the
> configuration file given in this mail, it works fine, the lifecycle was
> added.
>
> Thank you.
>
> On Thu, Oct 9, 2014 at 12:21 PM, Himasha Guruge <[email protected]> wrote:
>
>> Hi Shiva,
>>
>> This is the xml configuration of the lifecycle source in governance
>> registry.
>>
>> <aspect name="SampleLifeCycle"
>> class="org.wso2.carbon.governance.registry.extensions.aspects.DefaultLifeCycle">
>>     <configuration type="literal">
>>         <lifecycle>
>>             <scxml xmlns="http://www.w3.org/2005/07/scxml";
>>                    version="1.0"
>>                    initialstate="Development">
>>                 <state id="Development">
>>                     <datamodel>
>>                        <data name="transitionExecution">
>>         <execution forEvent="Promote"
>> class="org.wso2.carbon.governance.registry.extensions.executors.WSExecutor">
>>                     <parameter name="async" value="false"/>
>>                     <parameter name="save.type" value="property"/>
>>                     <parameter name="save.name" value="response"/>
>>                     <parameter name="response.xpath" value="//ns:return"/>
>>                     <parameter name="response.namespace" value="
>> http://ws.apache.org/axis2"/>
>>                     <parameter name="response.namespace.prefix"
>> value="ns"/>
>>                     <parameter name="epr" value="
>> http://localhost:8080/axis2/services/AdderService.AdderServiceHttpSoap11Endpoint/
>> "/>
>>                     <parameter name="payload">
>>                         <soapenv:Envelope xmlns:soapenv="
>> http://schemas.xmlsoap.org/soap/envelope/"; xmlns:axis="
>> http://ws.apache.org/axis2";>
>>                             <soapenv:Header/>
>>                             <soapenv:Body>
>>                                 <axis:add>
>>                                     <axis:args0>5</axis:args0>
>>                                     <axis:args1>6</axis:args1>
>>                                 </axis:add>
>>                             </soapenv:Body>
>>                         </soapenv:Envelope>
>>                     </parameter>
>>           </execution>
>> </data>
>>                     </datamodel>
>>                     <transition event="Promote" target="Tested"/>
>>
>>                 </state>
>>                 <state id="Tested">
>>                     <datamodel>
>>                         <data name="checkItems">
>>                             <item name="Effective Inspection Completed"
>> forEvent="">
>>                             </item>
>>                             <item name="Test Cases Passed" forEvent="">
>>                             </item>
>>                             <item name="Smoke Test Passed" forEvent="">
>>                             </item>
>>                         </data>
>>                     </datamodel>
>>                     <transition event="Promote" target="Production"/>
>>                     <transition event="Demote" target="Development"/>
>>                 </state>
>>                 <state id="Production">
>>                     <transition event="Demote" target="Tested"/>
>>                 </state>
>>             </scxml>
>>         </lifecycle>
>>     </configuration>
>> </aspect>
>>
>>
>> Thanks & Regards,
>>
>> On Thu, Oct 9, 2014 at 12:10 PM, Shiva Balachandran <[email protected]>
>> wrote:
>>
>>> Hi Himasha,
>>>
>>> Please share the complete XML file.
>>>
>>> Thank you
>>>
>>> On Thu, Oct 9, 2014 at 9:28 AM, Himasha Guruge <[email protected]>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> In Governance Registry web service executor sample[1] , when trying to
>>>> create a new lifecycle, I'm unable to save it since it says unable to
>>>> validate the configuration.
>>>>
>>>> In the console, following error is shown where line number 23 points to
>>>> " <axis:args0>5</axis:args0>" of the payload parameter.
>>>>
>>>>  "ERROR {org.wso2.carbon.governance.lcm.util.CommonUtil} -  Unable to
>>>> parse the XML configuration. Please validate the XML
>>>> configurationorg.xml.sax.SAXParseException; lineNumber: 23; columnNumber:
>>>> 33; cvc-complex-type.2.3: Element 'parameter' cannot have character
>>>> [children], because the type's content type is element-only."
>>>>
>>>> I have added the exact segment mentioned in the sample, under data
>>>> model tag of Development state. What could be the issue in the xml
>>>> configuration?
>>>>
>>>> [1]
>>>>  https://docs.wso2.com/display/Governance460/Web+Service+Executor+Sample
>>>> <https://docs.wso2.com/display/Governance460/Web+Service+Executor+Sample>
>>>> Thanks & Regards,
>>>>
>>>> --
>>>> Himasha Guruge
>>>> *Software Engineer*
>>>> WS*O2* *Inc.*
>>>> Mobile: +94 777459299
>>>> [email protected]
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Shiva Balachandran
>>> Software Engineer
>>> WSO2 Inc.
>>>
>>> Mobile - +94 774445788
>>>
>>
>>
>>
>> --
>> Himasha Guruge
>> *Software Engineer*
>> WS*O2* *Inc.*
>> Mobile: +94 777459299
>> [email protected]
>>
>
>
>
> --
> Shiva Balachandran
> Software Engineer
> WSO2 Inc.
>
> Mobile - +94 774445788
>



-- 
Himasha Guruge
*Software Engineer*
WS*O2* *Inc.*
Mobile: +94 777459299
[email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to