I have this process:
http://camunda.org/share/#/process/bfc2ed5f-02a6-44a9-b6da-09f74f0f28af
but the camunda:failedJobRetryTimeCycle setting as described here:
http://docs.camunda.org/latest/guides/user-guide/#failed-jobs
does not seem to be working (it's not honoring the 1 second cycles I set up, but instead is doing 5 minute retries).
Additionally, I put 'foo' in there for one of the settings, and I don't get any parse errors:
<camunda:failedJobRetryTimeCycle>foo</camunda:failedJobRetryTimeCycle>
Am I doing something wrong, or is there a bug?
I'm on
<camunda.version>7.0.0-Final</camunda.version>
Thanks,
Galen
I had to tweak the syntax slightly to this:
<font face="courier new, monospace">
<bean id="processEngineConfiguration" class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration">
...
<property name="customPostBPMNParseListeners">
<list>
<bean class="org.camunda.bpm.engine.impl.bpmn.parser.FoxFailedJobParseListener" />
</list>
</property>
<property name="failedJobCommandFactory" ref="foxFailedJobCommandFactory" />
</bean>
<bean id="foxFailedJobCommandFactory" class="org.camunda.bpm.engine.impl.jobexecutor.FoxFailedJobCommandFactory" />
</font>
However, it still does not appear to be working (no parse error, and still the 5 minute timeouts).
The link you gave me in another post was:
http://stage.docs.camunda.org/guides/user-guide/#failed-jobs
which mentions "fox:failedJobRetryTimeCycle".
The documentation I am currently working off of is:
http://docs.camunda.org/latest/guides/user-guide/#failed-jobs
which says: "camunda:failedJobRetryTimeCycle".
I'm supposed to use "camunda" as the namespace, right?
Thanks,
Galen
http://camunda.org/share/#/process/28df3cf7-bcce-41c7-8486-5577b68e0321
NOTE: See my comments on the task nodes about how many seconds they wait. The tokens should hit the joining gateway about 9 seconds apart in this example. This is the exception I get:
org.camunda.bpm.engine.OptimisticLockingException: ExecutionEntity[28] was updated by another transaction concurrently
and this is what gets inserted in the database at that moment:
mysql> select * from ACT_RU_JOB;
+-----+------+---------+---------------------+--------------------------------------+------------+---------------+----------------------+----------+---------------------+----------------+----------+---------+--------------------+-------------------------+----------------+
| ID_ | REV_ | TYPE_ | LOCK_EXP_TIME_ | LOCK_OWNER_ | EXCLUSIVE_ | EXECUTION_ID_ | PROCESS_INSTANCE_ID_ | RETRIES_ | EXCEPTION_STACK_ID_ | EXCEPTION_MSG_ | DUEDATE_ | REPEAT_ | HANDLER_TYPE_ | HANDLER_CFG_ | DEPLOYMENT_ID_ |
+-----+------+---------+---------------------+--------------------------------------+------------+---------------+----------------------+----------+---------------------+----------------+----------+---------+--------------------+-------------------------+----------------+
| 37 | 2 | message | 2013-11-25 09:54:19 | cd656092-9d0d-4ba9-ace2-23bdefd1b14d | 0 | 32 | 28 | 3 | NULL | NULL | NULL | NULL | async-continuation | transition-create-scope | 1 |
+-----+------+---------+---------------------+--------------------------------------+------------+---------------+----------------------+----------+---------------------+----------------+----------+---------+--------------------+-------------------------+----------------+
1 row in set (0.00 sec)
I changed it all to use the "fox" namespace, and still no luck.
Here's my updated BPMN:
http://www.camunda.org/share/#/process/9eb0cf32-242b-4394-ae90-5ebbe253a036
The main website points to "http://docs.camunda.org/latest/guides/user-guide/". I'm not sure what "stage" is, but Camunda might want to re-link the main website.
Thanks,
Galen
xmlns:camunda="http://activiti.org/bpmn"xmlns:fox="http://www.camunda.com/fox"targetNamespace="Examples"><task id="failingTask" camunda:async="true"><extensionElements><fox:failedJobRetryTimeCycle>R5/PT5M</fox:failedJobRetryTimeCycle></extensionElements></task>Cheers,Daniel Meyer
I got your test suite to work, but for some reason mine still doesn't work. I think there may be a difference like:
-- Parallel execution / parallel gateway / concurrent execution is involved in my case
-- I have a mixed set of namespaces in my extensionElements:
<bpmn2:extensionElements>
<fox:failedJobRetryTimeCycle>R4/PT1S</fox:failedJobRetryTimeCycle>
<camunda:field name="durationMillis" stringValue="10000"/>
</bpmn2:extensionElements>
Anyway, if I get some time, I can try to simplify my case to a simpler, failing test case.
Thanks,
Galen
HTH, Matthias
could you please explain how you wrapped the process deployment and started it in a own new transaction?
Thanks!
Martin
Thanks a lot!
Martin