manusoftar

activiti rest call

Jan 20th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $http({ headers : { 'Authorization' : "Basic " + $scope.auth, 'Content-Type' : 'application/json' },
  2.                                 method : "POST",
  3.                                 url : $scope.config.baseurl + ':' + $scope.config.port + '/' + $scope.config.suffix + '/service/runtime/process-instances',
  4.                                 data : { "processDefinitionId" : "proceso:21:102548",
  5.                                          "variables" : [{
  6.                                                "name" : "titulo",
  7.                                                "value" : title
  8.                                          },
  9.                                          {  "name" : "msg",
  10.                                             "value" : msg ,
  11.                                             "scope" : "local"
  12.                                          },
  13.                                          { "name" : "user_email",
  14.                                            "value" : getUserMail($scope.user)
  15.                                          }]
  16.                                 }
  17.                            
  18.                         })
Advertisement
Add Comment
Please, Sign In to add comment