Application Delivery Management
Application Modernization & Connectivity
CyberRes by OpenText
IT Operations Management
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.novell.com/provisioning/service">
<soapenv:Header/>
<soapenv:Body>
<ser:getWorkEntriesRequest>
<ser:WorkEntryQuery logic="?" order="?">
<!--You have a CHOICE of the next 14 items at this level-->
<!--type: string-->
<ser:addressee>?</ser:addressee>
<!--type: string-->
<ser:processId>?</ser:processId>
<!--type: string-->
<ser:requestId>?</ser:requestId>
<!--type: string-->
<ser:activityId>?</ser:activityId>
<!--type: int-->
<ser:status>?</ser:status>
<!--type: string-->
<ser:owner>?</ser:owner>
<!--type: int-->
<ser:priority>?</ser:priority>
<ser:creationTime>
<!--type: long-->
<ser:value>?</ser:value>
<!--type: t_operator - enumeration: [EQ,LT,LE,GT,GE]-->
<ser:operator>?</ser:operator>
</ser:creationTime>
<ser:expTime>
<!--type: long-->
<ser:value>?</ser:value>
<!--type: t_operator - enumeration: [EQ,LT,LE,GT,GE]-->
<ser:operator>?</ser:operator>
</ser:expTime>
<ser:completionTime>
<!--type: long-->
<ser:value>?</ser:value>
<!--type: t_operator - enumeration: [EQ,LT,LE,GT,GE]-->
<ser:operator>?</ser:operator>
</ser:completionTime>
<!--type: string-->
<ser:recipient>?</ser:recipient>
<!--type: string-->
<ser:initiator>?</ser:initiator>
<!--type: string-->
<ser:proxyFor>?</ser:proxyFor>
<!--type: string-->
<ser:workTaskId>?</ser:workTaskId>
</ser:WorkEntryQuery>
<!--type: int-->
<ser:arg1>?</ser:arg1>
</ser:getWorkEntriesRequest>
</soapenv:Body>
</soapenv:Envelope>
<ser:WorkEntryQuery logic="?" order="?">
<!--You have a CHOICE of the next 14 items at this level-->
<!--type: t_operator - enumeration: [EQ,LT,LE,GT,GE]-->
<!--type: int-->
<ser:completionTime>
<!--type: long-->
<ser:value>?</ser:value>
<!--type: t_operator - enumeration: [EQ,LT,LE,GT,GE]-->
<ser:operator>?</ser:operator>
</ser:completionTime>
curl $_CURL_OPTIONS -k -u "$1:$SENHA" -H "$CTYPE" -H "$ACTION" -d "$POST" "$URL" -o "$4"
### Function: getWorkEntries
# Usage:
# getWorkEntries $username $password $rbpm_url $output_file $initiator $max_entries
#
getWorkEntries()
{
USAGE="Function Usage:
getWorkEntries username password rbpm_url output_file initiator max_entries
The initiator should be in full ldap format, and if it has spaces need to be encased in quotes.
for example: cn=george,cn=users,o=data
rbpm_url should be in the format:
protocol://server:port/servicename
for example:
https://rbpm.lab.novell.com:8543/IDMProv";
if "X$_RBPM_SOAP_ROLE_DEBUG" = "Xtrue"
then
dbgparams=$#
dbgparam=1
while [ "$dbgparam" -le "$dbgparams" ]
do
echo -n "Parameter "
echo -n \$$dbgparam
echo -n " = "
eval echo \$$dbgparam
(( dbgparam ))
done
fi
# Initial Parameters check
if | -z "$2" || -z "$3" || -z "$4" || -z "$5" || -z "$6"
then
echo "$USAGE"
return 1
fi
PARAMS=$#
if "X$2" = "X-W"
then
read -sp "Please enter the password for user $1: " SENHA
echo
else
SENHA=$2
fi
# Setup for the SOAP call
URL="${3}/provisioning/service"
ACTION="SOAPAction: 'http://www.novell.com/provisioning/service/getWorkEntries'"
CTYPE='Content-Type: text/xml;charset=UTF-8'
# Build SOAP XML envelope and call to be issued
POST="<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ser='http://www.novell.com/provisioning/service'>\
<soapenv:Header/>\
<soapenv:Body>\
<ser:getWorkEntriesRequest>\
<ser:WorkEntryQuery>\
<ser:initiator>${5}</ser:initiator>\
</ser:WorkEntryQuery>\
<ser:arg1>${6}</ser:arg1>\
</ser:getWorkEntriesRequest>"
if "X$_RBPM_SOAP_ROLE_DEBUG" = "Xtrue"
then
echo
echo POST data:
echo $POST
echo
fi
# Issue the request
curl $_CURL_OPTIONS -k -u "$1:$SENHA" -H "$CTYPE" -H "$ACTION" -d "$POST" "$URL" -o "$4"
}