Skip to content

Commit

Permalink
FR#4012: Change the namespace of the BpmFlowableEndpoint spring endpo…
Browse files Browse the repository at this point in the history
…int (#4028)

* FR#4012: Change prefix for BPM endpoint

* FR#4012: Remove slash at the end of the prefix
  • Loading branch information
entrery committed Jun 13, 2024
1 parent b03185a commit 6351a88
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public abstract class BaseEndpoint {
/** The Constant PREFIX_ENDPOINT_IDE. */
public static final String PREFIX_ENDPOINT_IDE = "services/ide/";

/** The Constant PREFIX_ENDPOINT_BPM. */
public static final String PREFIX_ENDPOINT_BPM = "services/bpm";

/** The Constant PREFIX_ENDPOINT_PUBLIC. */
public static final String PREFIX_ENDPOINT_PUBLIC = "public/";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class HttpSecurityURIConfigurator {

/** The Constant DEVELOPER_PATTERNS. */
private static final String[] DEVELOPER_PATTERNS = {//
"/services/bpm/**", //
"/services/ide/**", //
"/websockets/ide/**"};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
*/
@CrossOrigin
@RestController
@RequestMapping(BaseEndpoint.PREFIX_ENDPOINT_IDE + "bpm")
@RequestMapping(BaseEndpoint.PREFIX_ENDPOINT_BPM)
public class BpmFlowableEndpoint extends BaseEndpoint {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ideBpmHistoricProcessInstancesView.controller('IDEBpmHistoricProcessInstancesVie
};

$scope.fetchData = function() {
$http.get('/services/ide/bpm/bpm-processes/historic-instances', { params: { 'businessKey': $scope.model.searchText, 'definitionKey': $scope.selectedProcessDefinitionKey, 'limit': 100 } })
$http.get('/services/bpm/bpm-processes/historic-instances', { params: { 'businessKey': $scope.model.searchText, 'definitionKey': $scope.selectedProcessDefinitionKey, 'limit': 100 } })
.then((response) => {
$scope.instances = response.data;
});
Expand All @@ -52,7 +52,7 @@ ideBpmHistoricProcessInstancesView.controller('IDEBpmHistoricProcessInstancesVie
}

$scope.applyFilter = function () {
$http.get('/services/ide/bpm/bpm-processes/historic-instances', { params: { 'businessKey': $scope.model.searchText, 'definitionKey': $scope.selectedProcessDefinitionKey, 'limit': 100 } })
$http.get('/services/bpm/bpm-processes/historic-instances', { params: { 'businessKey': $scope.model.searchText, 'definitionKey': $scope.selectedProcessDefinitionKey, 'limit': 100 } })
.then((response) => {
$scope.instances = response.data;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ bpmImageView.controller('BpmImageViewController', ['$scope', 'messageHub', funct
};

$scope.loadDefinitionImageLink = function (definition) {
$scope.imageLink = `/services/ide/bpm/bpm-processes/diagram/definition/${definition}`;
$scope.imageLink = `/services/bpm/bpm-processes/diagram/definition/${definition}`;
$scope.state.isBusy = false;
};

$scope.loadInstanceImageLink = function (instance) {
$scope.imageLink = `/services/ide/bpm/bpm-processes/diagram/instance/${instance}`;
$scope.imageLink = `/services/bpm/bpm-processes/diagram/instance/${instance}`;
$scope.state.isBusy = false;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ideBpmProcessContextView.controller('IDEBpmProcessContextViewController', ['$sco
$scope.currentProcessInstanceId = null;
$scope.selectedVariable = null;
$scope.disableModificationButtons = false;
$scope.servicePath = '/services/ide/bpm/bpm-processes/instance/'
$scope.servicePath = '/services/bpm/bpm-processes/instance/'

$scope.selectionChanged = function (variable) {
$scope.variablesList.forEach(variable => variable.selected = false);
Expand All @@ -42,7 +42,7 @@ ideBpmProcessContextView.controller('IDEBpmProcessContextViewController', ['$sco
}

$scope.upsertProcessVariable = function(processInstanceId, varName, varValue, dialogId) {
const apiUrl = '/services/ide/bpm/bpm-processes/instance/' + processInstanceId + '/variables';
const apiUrl = '/services/bpm/bpm-processes/instance/' + processInstanceId + '/variables';
const requestBody = { 'name': varName, 'value': varValue };

$http({
Expand Down Expand Up @@ -155,7 +155,7 @@ ideBpmProcessContextView.controller('IDEBpmProcessContextViewController', ['$sco
$scope.$apply(function () {
$scope.currentProcessInstanceId = processInstanceId;
$scope.disableModificationButtons = false
$scope.servicePath = '/services/ide/bpm/bpm-processes/instance/'
$scope.servicePath = '/services/bpm/bpm-processes/instance/'
});
$scope.fetchData(processInstanceId);
});
Expand All @@ -165,7 +165,7 @@ ideBpmProcessContextView.controller('IDEBpmProcessContextViewController', ['$sco
$scope.$apply(function () {
$scope.currentProcessInstanceId = processInstanceId;
$scope.disableModificationButtons = true
$scope.servicePath = '/services/ide/bpm/bpm-processes/historic-instances/'
$scope.servicePath = '/services/bpm/bpm-processes/historic-instances/'
});
$scope.fetchData(processInstanceId);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ideBpmProcessDefinitionsView.controller('IDEBpmProcessDefinitionsViewController'
return;
}

$http.get('/services/ide/bpm/bpm-processes/definitions', { params: { 'condition': this.filterBy, 'limit': limit } })
$http.get('/services/bpm/bpm-processes/definitions', { params: { 'condition': this.filterBy, 'limit': limit } })
.then((response) => {
if (this.definitionsList.length < response.data.length) {
//messageHub.showAlertInfo("User definitions", "A new user task has been added");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ideBpmProcessInstancesView.controller('IDEBpmProcessInstancesViewController', ['
return;
}

$http.get('/services/ide/bpm/bpm-processes/instances', { params: { 'id': this.searchText, 'key': this.selectedProcessDefinitionKey, 'limit': 100 } })
$http.get('/services/bpm/bpm-processes/instances', { params: { 'id': this.searchText, 'key': this.selectedProcessDefinitionKey, 'limit': 100 } })
.then((response) => {
if (this.instancesList.length < response.data.length) {
//messageHub.showAlertInfo("User instances", "A new user task has been added");
Expand Down Expand Up @@ -73,7 +73,7 @@ ideBpmProcessInstancesView.controller('IDEBpmProcessInstancesViewController', ['
}

this.executeAction = function(requestBody, actionName) {
const apiUrl = '/services/ide/bpm/bpm-processes/instance/' + this.selectedProcessInstanceId;
const apiUrl = '/services/bpm/bpm-processes/instance/' + this.selectedProcessInstanceId;

$http({
method: 'POST',
Expand Down Expand Up @@ -132,7 +132,7 @@ ideBpmProcessInstancesView.controller('IDEBpmProcessInstancesViewController', ['
}

this.applyFilter = function () {
$http.get('/services/ide/bpm/bpm-processes/instances', { params: { 'id': this.searchText, 'key': this.selectedProcessDefinitionKey, 'limit': 100 } })
$http.get('/services/bpm/bpm-processes/instances', { params: { 'id': this.searchText, 'key': this.selectedProcessDefinitionKey, 'limit': 100 } })
.then((response) => {
this.instancesList = response.data;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ideBpmProcessJobsView.controller('IDEBpmProcessJobsViewController', ['$scope', '
};

$scope.fetchData = function(processInstanceId) {
$http.get('/services/ide/bpm/bpm-processes/instance/' + processInstanceId + '/jobs', { params: { 'limit': 100 } })
$http.get('/services/bpm/bpm-processes/instance/' + processInstanceId + '/jobs', { params: { 'limit': 100 } })
.then((response) => {
$scope.jobsList = response.data;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ tasksView.controller('TasksController', ['$scope','$http', '$timeout', 'messageH
};

$scope.fetchData = function(processInstanceId) {
$http.get('/services/ide/bpm/bpm-processes/instance/' + processInstanceId + '/tasks?type=groups', { params: { 'limit': 100 } })
$http.get('/services/bpm/bpm-processes/instance/' + processInstanceId + '/tasks?type=groups', { params: { 'limit': 100 } })
.then((response) => {
$scope.tasksList = response.data;
});

$http.get('/services/ide/bpm/bpm-processes/instance/' + processInstanceId + '/tasks?type=assignee', { params: { 'limit': 100 } })
$http.get('/services/bpm/bpm-processes/instance/' + processInstanceId + '/tasks?type=assignee', { params: { 'limit': 100 } })
.then((response) => {
$scope.tasksListAssignee = response.data;
});
Expand Down Expand Up @@ -70,7 +70,7 @@ tasksView.controller('TasksController', ['$scope','$http', '$timeout', 'messageH
}

$scope.executeAction = function(taskId, requestBody, actionName, clearCallback) {
const apiUrl = '/services/ide/bpm/bpm-processes/tasks/' + taskId;
const apiUrl = '/services/bpm/bpm-processes/tasks/' + taskId;

$http({
method: 'POST',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var FLOWABLE = FLOWABLE || {};

FLOWABLE.CONFIG = {
'onPremise': true,
'contextRoot': '/services/ide/bpm',
'contextRoot': '/services/bpm',
'webContextRoot': '/services/web/ide-bpm',
'datesLocalization': false
};
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ angular.module('page', ["ideUI", "ideView", "entityApi"])
};

$scope.fetchData = function() {
$http.get('/services/ide/bpm/bpm-processes/tasks?type=groups', { params: { 'limit': 100 } })
$http.get('/services/bpm/bpm-processes/tasks?type=groups', { params: { 'limit': 100 } })
.then((response) => {
$scope.tasksList = response.data;
});

$http.get('/services/ide/bpm/bpm-processes/tasks?type=assignee', { params: { 'limit': 100 } })
$http.get('/services/bpm/bpm-processes/tasks?type=assignee', { params: { 'limit': 100 } })
.then((response) => {
$scope.tasksListAssignee = response.data;
});
Expand All @@ -78,7 +78,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"])
}

$scope.executeAction = function(taskId, requestBody, actionName, clearCallback) {
const apiUrl = '/services/ide/bpm/bpm-processes/tasks/' + taskId;
const apiUrl = '/services/bpm/bpm-processes/tasks/' + taskId;

$http({
method: 'POST',
Expand Down

0 comments on commit 6351a88

Please sign in to comment.