How to visualize only the last 10 orders in a case overview page using a Custom Query and APIs?

Hello everybody,

It may be a simple question but no matter how hard I try, I can't find a solution.

Here is the context:
Similar to the "Travel Request" tutorial, I have a case overview page but with one Table widget that allows me to see the status of my order (pending, rejected or approved). For instance:

------- ----------
Cust. | Status
------- ----------
1 | approved
------- ----------
2 | rejected
------- ----------
3 | pending
------- ----------

Does there exist a way to make 'Connector In' and 'Connector Out' fields have a compulsory script for every task?

I want my workflow designer to always use 'Connector In' and 'Connector Out' scripts at every station to check the inputs and outputs at the station. Is there a way to make a validation that checks this and prompts them accordingly?
If not, can I make an API call to the bpm so as to automatically make a boilerplate connector in and out groovy script whenever a new task is created?


Delay to load API response

API 1: sessionUser (../API/system/session/unusedid)
API 2: humanTask (../API/bpm/humanTask?c=-1&p=0&f=user_id={{sessionUser.user_id}})

In my application page I use a task filter for each user of the session, displaying the result in a table.

I noticed that when I run the config API calls described above, the task API response time is high (2-3 seconds). Being that, I tested it on an application that only performs this.

How can I make this type of filter to perform better with a faster return?

BDM Unique Constraint for Active Processes only


I have a process in which each process instance has a BDM object associated with it. If a process has started with a BDM object, I want to prevent users from being able to start another process using the same object as the existing process. If I use a unique constraint on the ID field of my BDM object, users are prevented from ever being able to start a process using an object that was used in the past, which is not what I want. I only want to ensure that a process cannot be started using an object that is being used in an active process.

Problem in request HTTPmethod

I use the HTTP request method to change and update the assigned_id variable of a task, as demonstrated below:

var request = $http({
method: "put",
url: "../API/bpm/humanTask/"+ $scope.properties.taskId,
data: {
"assigned_id" :$scope.properties.userId

Unable to deserialize object when starting a new case of a process

Hi everybody.
I made this step:
1) I defined a BDM com.xyz.Class with only one attribute (a String, mandatory)
2) I defined a process variable "var" of type com.xyz.Class (the class defined in BDM)
3) I made a (VERY) simple process with one simple task which should show the process variable instantiated when starting a new case.

Update the field of bdm object while task remain to the current actor


I want to update one of the fields of my business object without submitting the task.
Actually, I want to add notes of my current task without submitting it.

Is there any method to do that, a POST call to call update query or something else.
I have read in the documentation that only SELECT queries are allowed.

Asad Shakeel

Rest API Extension deployment

Hi guys,
We were wondering if there is a way to deploy all the REST API Extensions at once for the Studio ?

Use Case : I import my workspace in a new local repository, I have 10 REST API Extensions.
For now I have to select the Extensions one by one, and select Deploy...

Can we do a global maven build ? How can I know the Maven Phase executed by the Studio when you click on Deploy... ?

Cheers :)