Expand my Community achievements bar.

I want to terminate an action instance ,but I don't know how to get the invocationid for the action

Avatar

Former Community Member
I want to terminate an action instance in script service ,and I have found that the ProcessManager has a method called 'terminateAction' , like this:

ProcessManager.terminateAction(String invocationId)



but I don't know how to get the invocationId through the API .If some one know how to do ,please kindly tell me .Thanks in advanced!
6 Replies

Avatar

Level 1

I've the same question in LiveCycle ES2, and I don't know how to do it,if someone know it,please tell me ,thanks

Avatar

Level 10

A quick solution:

The following query will retrieve the Invocation Id directly from Adobe database.

SELECT long_lived_invocation_id FROM tb_action_instance WHERE id = '<Your Action Instance Id>'

However, there must be an elegant way to fetch this value through API. I will share with you if I find it.

Nith

Avatar

Level 2

Yeah , even i have a doubt on this. Any help would be appreciated.

Avatar

Level 3

Has anyone been able to solve this? If so, I'd appreciate any hints ...

Thanks alot,

Steffen.

Avatar

Level 10

I had the same requirement. I have read the invocation Id from tb_process_instance table using JDBC service.

If you find any API to locate the Invocation Id for a specific process Id, please share with me.

Nith

Avatar

Former Community Member

Hi,

There are two ways to terminate an action instance.

1. First way is to do it from the adminui, where in you can terminate the process task.

2. Second way is to do it from the database.

There are three tables in the LiveCycle Database that captures these details:

1. tb_job_instance

2. tb_action_instance

3. tb_process_instance.

There are different flag status that is there corresponding to the different Actions that are there in LC.

The Most important thing: - You need to contact support (Adobe Technical Support for LiveCycle) who would be sending across the queries, related to the problem for executing if at all the problem can't be rectified from the adminui.

It is never advisable, nor recommended to touch and tweek around with the LC database without any guidance, since, the LC Database as lot of dependencies and constraints which might be effected if the database is updated without any proper guidance.

Hence, you could try to do this using the adminui first if at all it still doesnt get terminated, you could contact Adobe Technical Support (LiveCycle Team), to resolve that.

Cheers!!

Pushkar