Hi,
This is regarding the configurations of feature 'workflow permission for
multiple roles' implemented under [1]
Considering there are 2 roles as follows how should the .ht file for the
relevant work flow be altered?
"allowedRoles":"wfrole1,wfrole2",
1) Should we have one 'logicalPeopleGroup' defined for all allowed roles
and have all allowed roles under that 'logicalPeopleGroup' of
'peopleAssignments'
eg:
<htd:logicalPeopleGroup name="wfgroup">
<htd:documentation xml:lang="en-US">The group of admins
responsible for the region specified.</htd:documentation>
<htd:parameter name="role" type="xsd:string"/>
</htd:logicalPeopleGroup>
<htd:peopleAssignments>
<htd:potentialOwners>
<htd:from logicalPeopleGroup="wfgroup">
<htd:argument name="role">wfrole1</htd:argument>
<htd:argument name="role">wfrole2</htd:argument>
</htd:from>
</htd:potentialOwners>
</htd:peopleAssignments>
OR
2) Should there be a separate group for each role
eg:
<htd:logicalPeopleGroup name="wfgroup1">
<htd:documentation xml:lang="en-US"> The group of admins
responsible for the region specified.</htd:documentation>
<htd:parameter name="role" type="xsd:string"/>
</htd:logicalPeopleGroup>
<htd:logicalPeopleGroup name="wfgroup2">
<htd:documentation xml:lang="en-US">The group of admins
responsible for the region specified. </htd:documentation>
<htd:parameter name="role" type="xsd:string"/>
</htd:logicalPeopleGroup>
<htd:peopleAssignments>
<htd:potentialOwners>
<htd:from logicalPeopleGroup="wfgroup1">
<htd:argument name="role">wfrole1</htd:argument>
</htd:from>
<htd:from logicalPeopleGroup="wfgroup2">
<htd:argument name="role">wfrole2</htd:argument>
</htd:from>
</htd:potentialOwners>
</htd:peopleAssignments>
I have tried both ways and it's not possible to make tasks available to all
'allowedRoles' at the same time.
It would be great if you could attach a sample .ht file with the correct
configurations if they differ from what is mentioned above.
[1] https://wso2.org/jira/browse/APIMANAGER-2044
Regards
*Asanthi Kulasinghe*
WSO2 Inc; http://www.wso2.com/.
Mobile: +94777355522
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev