cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize Workflow(start from Share dashlet)

molti
Champ in-the-making
Champ in-the-making
As it is possible initialize value bpm_assigne, what at start workflow - it has been already chosen as the executor ?
I try this code, but doesn't work as it is necessary Smiley Sad
<start-state name="start">
   <task name="sw:submitATask" swimlane="initiator">
    <event type="task-create">
              <script>
            <variable name="bpm_assignee" access="write"/>
            <variable name="people" access="read"/>
            <expression>
               bpm_assignee = null;
               var assignee = people.getPerson("Nachalnik");
               bpm_assignee = assignee;
            </expression>
         </script>
      </event>
      </task>
      <transition name="" to="next"/>
   </start-state>
2 REPLIES 2

molti
Champ in-the-making
Champ in-the-making
Whether probably to insert a similar script before start workflow manually??????
var workflow = actions.create("start-workflow");
workflow.parameters.workflowName = "jbpm$wf:review";
workflow.parameters["bpm:workflowDescription"] = document.name;
workflow.parameters["bpm:assignee"] = person;
var futureDate = new Date();
futureDate.setDate(futureDate.getDate() + 7);
workflow.parameters["bpm:workflowDueDate"] = futureDate;
workflow.execute(document);

Please  :cry:

molti
Champ in-the-making
Champ in-the-making
Nobody knows or it isn't possible?
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.