Cherry Cherry - 1 month ago 11
Java Question

How assign task to pooled group in alfresco?

Cosider a code:

<potentialOwner>
<resourceAssignmentExpression>
<formalExpression>${sc_groupProperty.properties.authorityName}</formalExpression>
</resourceAssignmentExpression>
</potentialOwner>


When
formalExpression
uses task property
sc_groupProperty
which is association to group of users everything wroks. But when it is changed to

<formalExpression>SOME_GROUP</formalExpression>


or

<formalExpression>group(SOME_GROUP)</formalExpression>


Created task become unassigned. Is there way to use hardcoded value instead of creating task property?

Answer

Real Alfresco's group name has prefix GROUP_:

<formalExpression>GROUP_SOME_GROUP</formalExpression>

you can also try Spring Expression Language (SpEL) literal expression:

<formalExpression>#{'GROUP_SOME_GROUP'}</formalExpression>

Updated

While formal expression is GROUP_SOME_GROUP, in alfresco UI you should create with name SOME_GROUP.

Comments