Create Incident for technical errors


#1

I was trying to create Incident in JavaDelegates configured in service tasks for technical errors.

Can anyone provide the valid input for the attribute configuration of type String.


#2

It is the payload of the incident.


#3

Do you have any sample data or example?


#4

@Yana Thanks for the reply.

From where we will get the incident payload ? It will be retrieved from current execution and can we input to “configuration” field?

Or we have to manually input some messages?

What can be achieved using the “configuration” field???

https://docs.camunda.org/manual/7.9/reference/rest/execution/post-create-incident/#request


#5

Hi @aravindhrs,

You can choose what to put as configuration. This will be an additional information for your own.
The engine scenarios beside create a custom incident are:
When a job fails, the created incident has the job id as configuration field.
And if incident is created due to external task’s retries reached 0, than the configuration is the external task id.

Does this help?


#6

Thanks @Yana