title: Define multiple possible paths in workflow activiti
body: <p><a href="https://i.stack.imgur.com/VbxaH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VbxaH.png" alt="work flow" /></a></p>
  
  <p>I am designing a workflow in activiti so far i have been able to design it like above.
  My problem is</p>
  <ol>
  <li>i start a work flow.</li>
  <li>present user option to execute one of the two possible action(Archive and complete in diagram)</li>
  <li>i also need to have authorization on whether he can archive or complete or both.</li>
  <li>user can take one of these options.</li>
  <li>based on one of the action taken workflow proceeds.</li>
  </ol>
  <p>So far to achieve this i introduced user task new before complete and archive and added two form variables named archive and complete as boolean.</p>
  <p>Depending on which form variable he chooses to fill i proceed further.</p>
  <p>But in this case i can't restrict user based on whether it has permission of archive and complete and all users will be shown both options.</p>
  <p>is there any other way to achieve this i am very new to activiti and workflow and bpmn in general.
  Any help will be appreciated thanks in advance</p>