Giter Club home page Giter Club logo

camunda.process.diagram's People

Contributors

test123456789012345 avatar zerounix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

camunda.process.diagram's Issues

what does the third para of method "doAnnotate" do?

Hi,

Sorry to bother you again. Now my tool works much better than before. However I still have one question which is described in the title. The naming like "label-success" and "label-primary" are arbitrary or not?

How to define variable in a nested for loop where $http.get is invoked?

Hi,

here is my code, where three nested for-loops are defined. The problem is I am not sure how to define the variable list to get the right result. In my code list is defined under $scope, but it doesn't delive the right result. Before this, I also tried var list = "", which does not work as well. I am not familiar with the angularjs concepts. I hope you can help me out here.

          //for all the process instances
          for(var i=0; i< pidList.length; ++i){
              $http.get('/engine-rest/engine/' + $scope.engine + '/history/activity-instance?processInstanceId=' + pidList[i]).success(function(data) {
                  $scope.activities = data;
                  $scope.ids.push(data.activityId);
                  childActivities($scope.ids, data);
              }).then(function() {
                  //retrieve all the process instances again
                  angular.forEach($scope.activities, function(value,key){
                      $scope.list = '';
                      var num = 0;
                      var number = 0;
                      var id = "";
                      for(var j=0; j< pidList.length; ++j){
                          id = pidList[j];
                          $http.get('/engine-rest/engine/' + $scope.engine + '/history/activity-instance/count?processInstanceId=' + pidList[j]+ '&activityId=' + value.activityId).success(function(data) {
                              number += data.count;
                              if(data.count > 0){
                                  if(num > 0){
                                      $scope.list += "-"; 
                                  }
                                  $scope.list += id;
                                  num++;
                              }               
                              doAnnotate(value.activityId, number, 'label-primary', ['highlight'], popoverContent(value, $scope.list));
                          });
                      }  
                  });

              });
          }

The popoverContent do not show any details

Well the function popoverContent is used. The expected effect is that when the node is clicked, the information about this node like the activity name and start time will be pop-up. However the actual result is the pop-up windows is shown but only with a title without content. What could be the problem?

How to color different nodes?

Hi Zerounix,

I try to use this project to render a bpmn 2.0 process. But I don't know how to draw different colors. Can you help me out?

Best,
Huiying

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.