Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-617

execute paralellreview workflow using javascript

    Details

    • Resolution Time Custom Field:
      144 weeks, 6 hours, 34 minutes, 33 seconds

      Description

      auto execute parallelreview workflow using inbound rules through javascript.But it occurs the following errors:

      Caused by: Sourced file: inline evaluation of: ``wf_requiredPercent = wf_requiredApprovePercent; wf_reviewerCount = bpm_assignees . . . '' : Error in method invocation: No args method size() not found in class'java.lang.String' : at Line: 1 : in file: inline evaluation of: ``wf_requiredPercent = wf_requiredApprovePercent; wf_reviewerCount = bpm_assignees . . . '' : bpm_assignees .size ( )

      parallelreview.js

      var workflow = actions.create("start-workflow");
      workflow.parameters.workflowName = "jbpm$wf:parallelreview";
      workflow.parameters["bpm:workflowDescription"] = document.name;
      workflow.parameters["bpm:assignees"] = "mark,admin";
      var futureDate = new Date();
      futureDate.setDate(futureDate.getDate() + 7);
      workflow.parameters["bpm:workflowDueDate"] = futureDate;
      workflow.execute(document);

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                chys chys (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified

                    Structure Helper Panel