Hi Lakshitha,
The problem is in ApproveClaim-output.jsp
The error is in your response message. You are creating the response
message as follows:
if (outputVal == 'approve') {
return '<sch:ClaimApprovalResponse xmlns:sch="
http://www.example.com/claims/schema
"><sch:approved>true</sch:approved></sch:ClaimApprovalResponse>';
} else if (outputVal == 'disapprove') {
return '<sch:ClaimApprovalResponse xmlns:sch="
http://www.example.com/claims/schema
"><sch:approved>false</sch:approved></sch:ClaimApprovalResponse>';
}
if (outputYesNo == 'yes') {
return '<sch:ClaimApprovalResponse xmlns:sch="
http://www.example.com/claims/schema
"><sch:yesorno>true</sch:yesorno></sch:ClaimApprovalResponse>';
} else if (outputYesNo == 'no') {
return '<sch:ClaimApprovalResponse xmlns:sch="
http://www.example.com/claims/schema
"><sch:yesorno>false</sch:yesorno></sch:ClaimApprovalResponse>';
}
in above you are missing "yesorno" element in the response. The response
should be in format:
<sch:ClaimApprovalResponse xmlns:sch="http://www.example.com/claims/schema">
<sch:approved>true</sch:approved>
*<sch:yesorno>false</sch:yesorno>*
</sch:ClaimApprovalResponse>
And also, the logic of the response message creation is also wrong.
*NOTE :* WSO2 BPS 3.5.0 onward we have introduced humantask rendering
support. So creating .jsp files are not mandatory. With that release we
have introduces webapp for humantasks [1] so you no longer need to use the
management console. With the help of HT-Rendering support, you can create
humantask without creating .jsp files with that humantask explorer will
auto generate user input interface. Please refer [2] for more information.
[1] https://docs.wso2.com/display/BPS350/Customizing+Human+Task+Explorer
[2]
http://milindaperera.blogspot.com/2015/10/humantask-rendering-in-wso2-business.html
Thanks,
Milinda
On Tue, May 10, 2016 at 6:47 PM, Lakshitha Warnakulasuriya <
[email protected]> wrote:
> Thanx Milinda,
>
> Here I have attached the ht file,wsdl file and output and response jsp
> files. Can you please check and give me the solution. It's really helpful.
>
> Thanx a lot.
>
> Regards,
> Lakshitha.
> On 10 May 2016 18:13, "Milinda Perera" <[email protected]> wrote:
>
>> Hi,
>>
>> To add another input to humantask you have to change humantask definition
>> (.ht file) and WSDLs. only changing .jsp files doesn't work. If you have
>> done relevant changes for humantask definition and WSDLs, please share the
>> .jsp files.
>>
>> BTW which version of BPS are you using?, WSO2 BPS 3.5.0 onwards we
>> support HT rendering which is easier with web app UI (humantask-explorer),
>> you can create humantask without creating .jsp files.
>>
>> thanks,
>> Milinda
>>
>> On Tue, May 10, 2016 at 5:44 PM, Lakshitha Warnakulasuriya <
>> [email protected]> wrote:
>>
>>> Hi All,
>>>
>>> I want to add another pair of radio buttions in output.jsp and get
>>> response of these radio buttions to the response.jsp in Claim Approvel Task
>>> project. I tried it but not successful. Is their any way to do this.
>>> Any help can be really appreciated.
>>>
>>> Thanks and Regards,
>>> Lakshitha.
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Milinda Perera
>> Software Engineer;
>> WSO2 Inc. http://wso2.com ,
>> Mobile: (+94) 714 115 032
>>
>>
--
Milinda Perera
Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev