Project

General

Profile

Actions

Defect #1215

closed

Exception in transformation script stops personal processes

Added by Petr Michal over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Long running task
Target version:
Start date:
08/15/2018
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

In my case user had invalid required attribute from HR system. So provisioning into AD should failed.
But this fail caused stop of the contracting procces for all other users.
From this point, the process will never run again, because it is trying to handle the invalid user first and failed every time.


Files

recalc.png (69.4 KB) recalc.png Ondřej Kopr, 11/14/2018 09:16 AM

Related issues

Related to IdStory Identity Manager - Defect #1309: HrEnableContractProcess ends with errorRejectedVladimír Kotýnek10/10/2018

Actions
Related to IdStory Identity Manager - Task #1290: Separate processing of items in tasksClosedRadek Tomiška10/03/2018

Actions
Actions #1

Updated by Radek Tomiška over 5 years ago

  • Assignee changed from Radek Tomiška to Petr Michal

Add please affected version and other required informations, at least scenario to reproduce this issue (sync or manually LRT execution, which LRT ... ?).

Actions #2

Updated by Radek Tomiška over 5 years ago

  • Status changed from New to In Progress
  • Assignee changed from Petr Michal to Radek Tomiška
  • Target version set to Onyx (9.3.0)
Actions #3

Updated by Radek Tomiška over 5 years ago

  • Related to Defect #1309: HrEnableContractProcess ends with error added
Actions #4

Updated by Radek Tomiška over 5 years ago

  • Related to Task #1290: Separate processing of items in tasks added
Actions #5

Updated by Radek Tomiška over 5 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Radek Tomiška to Vít Švanda
  • % Done changed from 0 to 90

I implemented two new options (methods) to stateful LRT interface ('SchedulableStatefulExecutor'):
- 'continueOnException' - LRT will continue, after some item fails
- 'requireNewTransaction' - Each item will be processed in new transaction - ensures successfully processed item will be commited after other item or LRT task fails. Use this property everywhere, when LRT can be executed synchronously (e.g. for synchronization dependent task, which are executed synchronously and wrapped which one parent transaction).

Both new methods of 'AbstractSchedulableStatefulExecutor' super class returns 'false' by default to maintain backward compatibility (e.g. tasks for automatic roles solves this feature themselves or some other tasks doesn't need this features at all).

Doc:
https://wiki.czechidm.com/devel/documentation/application_configuration/dev/scheduled_tasks/task-scheduler#stateful_task_executors
Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/91a837a7b862a1e17be506beae4f88a404b97c94
https://github.com/bcvsolutions/CzechIdMng/commit/0cd19ac12a6319dd662a3e3d578dd41167ae5d5a

This two properties are used for HR processed (all three) => each item is processed separately. Use this new properties in your custom LRT, when the same behavior is needed.

Could you do a feedback pls?

Actions #6

Updated by Ondřej Kopr over 5 years ago

  • Assignee changed from Vít Švanda to Ondřej Kopr
Actions #7

Updated by Ondřej Kopr over 5 years ago

  • File recalc.png recalc.png added
  • Status changed from Needs feedback to Resolved
  • Assignee changed from Ondřej Kopr to Radek Tomiška
  • % Done changed from 90 to 100

I checked updated hr process recalculation and it works with throw exception.

I also checked throw exception during automatic role recalculation and it also works.

Thank you for update. Add this settings for all LRT is good idea. This is my first meeting with PlatformTransactionManager

Actions #8

Updated by Radek Tomiška over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF