getting the activityInstanceId at the UI Form level

1
0
-1

Hello,

I am trying to call a BDM API that uses the current activityInstanceId in it's query. it fetches all the data that has a taskId < activityInstanceId.

In my table i store the task ID upon creation, and would like to query over them.

How could i get the activityInstanceId from the UI? this is the URL that i want to call :

../API/bdm/businessData/com.bdm.document?q=findCommentListPreceedingTaskId&p=0&c=99&f={{taskId = activityInstanceId}}

if it isn't possible, can i store it as default value in a local variable and then pass it to the form ? if yes, how could i pass it?

1 answer

1
+1
-1
This one is the BEST answer!

Hi,
Are you sure about the API call being correct?
Since you have {{taskId=activityInstanceId}}, this is executed as code, thus making taskId to equal activityInstanceId, are you sure you want to do that?
Shouldn't it be :

" ../API/bdm/businessData/com.bdm.document?q=findCommentListPreceedingTaskId&p=0&c=99&f=taskId={{activityInstanceId}}" ?
Or am I misunderstanding something?

Comments

Submitted by mike_1989256 on Fri, 08/07/2020 - 11:59

Thank you! in deed, this solved my problem, thank you

Notifications