Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (28 sloc) 1.05 KB
<?xml version="1.0" encoding="UTF-8"?>
<api xmlns="http://ws.apache.org/ns/synapse"
name="nullcheck"
context="/user">
<resource methods="POST" uri-template="/rolecheck">
<inSequence>
<filter xpath="//role">
<then>
<log level="custom">
<property name="propStatus" value="role is available" />
</log>
<property name="userRole" expression="//role" />
</then>
<else>
<log level="custom">
<property name="propStatus" value="!!!!role is not available!!!!" />
</log>
<property name="userRole" value="generic_user" />
</else>
</filter>
<log level="custom">
<property name="status" value="====Final user Role====" />
<property name="USER_ROLE" expression="$ctx:userRole" />
</log>
<drop/>
</inSequence>
</resource>
</api>