How to close a BPT activity from a mobile app?

How to close a BPT activity from a mobile app?

  

I have a BPT process sending a notification to a mobile app. The mobile app receives the notification and the user can open the screen to complete the task from the link embeded in the notification message. The idea is that a human activity could be completed from a web application (set as the destination of the Human Activity) or from the mobile app, so I'm sending the ActivityId in the notification message. The problem now is that I couldn't close the Activity from the mobile app because the EPA Taskbox API applies only to web applications. So I haven't found the way to close an activity from the mobile app. The BPT_API extension doesn't have an Activity_Close action neither. 

I'll appreciate any advice.

Hi Mariela,

You have an ActivityClose Action in the System component.

Cheers,

José

Hi Jose, I tried to use it in mobile, but I couldn't. When I try to drag and drop it to the flow it shows the icon indicating that it's not a valid action.

Cheers,

Mariela

Solution

Hi Mariela,

Create a Server Action that receives the ActivityId and calls the ActivityClose. The Server Action that you created, you can call it from a client action.

Cheers,

José

Solution

Hi José. Thank you very much. It worked that way.