Custom module path in Cockpit plugin

Hi @GPS,

I am not sure what you want achieve with define('cockpit.plugin.social.controllers'...), but this will not work. You have define your own angular module, this could look like this:

define([
  'angular',
  './components/processdefinition/processdefinitionController',
  ...
], function(
  angular,
  processdefinitionController,
  ...) {

  var ngModule = angular.module('cockpit.plugin.social.controllers', []);

  ngModule.controller('MyProcessDefinitionController', processdefinitionController);

  return ngModule;
});

And the processdefinitioncontroller.js must look like this:

define('angular', function(angular) {

  return ['$scope', '$http', 'Uri', 'Notifications', '$modal',
    function($scope,   $http,   Uri,   Notifications,   $modal) {

    // TODO...

  }];
});

Does this help you?

Cheers,
Roman