cancel
Showing results for 
Search instead for 
Did you mean: 

Candidate Groups clarification.

sathish1
Champ in-the-making
Champ in-the-making
Here is a sample configuration, from what I understand any user who is in the Accounting group should only be able to start this process. But am able to start this process with any user id., from a spring controller class. What am I missing, am I expected to get an exception or something that says process was not started??


<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <signal id="startmyprocess" name="startmyprocess"></signal>
  <message id="messageEvent" name="messageEvent"></message>
  <process id="startmyrules" name="startmyrules version 1" isExecutable="true" activiti:candidateStarterGroups="ACCOUTING">
    <startEvent id="startevent1" name="Start"></startEvent>
    <sequenceFlow id="flow1" sourceRef="startmyprocess" targetRef="startmyrules"></sequenceFlow>
    <userTask id="startmyrules" name="New Rules">
      <extensionElements>
        <activiti:formProperty id="firs
….,


Thanks for your attention to help.,
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,
I have found following test in the sources:
org.activiti.examples.bpmn.authorization.StartAuthorizationTest.testPotentialStarter()

I have changed candidateStarter users (to empty) - so there were only groups. Test was passing.
Could you create failing test please?

Regards
Martin
I think it is similar to your

sathish1
Champ in-the-making
Champ in-the-making
Good thought and recommendation. Thanks will check.