-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[//Request/Target] not resolved in combination with CompositeRequests #43
Comments
If this is not working for CompositeRequest, then probably it never worked for Delete operation. What do you see for returned [//Target] in the verbose log? |
The first event what i see is: The second Event is the PostProcess itself. After that i received Event 3 as Error. Appendix XOML: |
The difference with the composite request is that the request data for the workflow requests is in a single parent request, so it needs special handling to ready the request information for the individual workflow request. Can you try three separate and very simple action workflows doing only one of the single lookups below each (you can fire them all in single MPR):
From what you are saying, 1 - results in "target does not exist error" - not expected, but looks like a FIM/MIM thing unless the WAL code is trying to read ObjectId attribute which is also not available, 2 - results in error- this is not expected - what error you get? 3 - I expect should give you the result unless this is resolving to parent request itself. Can you send back the results? |
Hi Nilesh All three Workflwos finished successfully, also showing the results from the IsPresent function in the Eventlog as expected: Until this point, it looks working.. But, i have now added a second update activiety to one of these workflows, trying to write [//WorkflowData/RequestTarget] into another object. I therfore used a lookup query to search for my user and [//WorkflowData/RequestTarget] => [//Queries/me/Description] and expect to see "True" in my description - but then I receive "Value cannot be null exception". please let me know if you want to see more eventlogs / results. |
This is then likely the problem with the query itself. Do you see query returning valid resources (11204 events? |
That would be really strange! If this is a new activity that only consumes WorkflowData then it does not have any connection to the deleted object processing in the previous object. Looks likes issue with simply using queries in the Composite delete request workflow. PS: The message "the expression ... is invalid" is informational and was changed to Verbose logging level in the latest release. |
Can confirm, the bug does still exist. It does not seem to have anything to do with the lookup of the target object or the query syntax though. As soon as the query feature is activated, and therefore at least one query defined, it will run into an error. But only when it runs for composite delete requests, everything else works. I tried different queries, and even with a single query for all person objects, or a static person, will result in an error. In the update part I just write a constant string into a variable or WorkflowData. Removing the check mark for "Query Resources" allows the Workflow to finish without errors. These are the Workflow Status Details of the failing Workflow Instance, maybe it helps? EXCEPTION DATA |
Stumbled upon this bug as well, appears to be present in the latest version. This Activity Execution Condition can be used to prevent Workflows from being executed on delete (single or Composite Delete):
But as soon as Query Resources is ticked on an update activity the workflow will fail with an "internal error" caused by a null reference exception because Query Resources causes the Target to be resolved and because the request operation in this case is SystemEvent and not Delete. The Resolver constructor will throw this exception by default if the target is null and the Operation is not Delete and not Create. The Resolver should be triggered with the parent request operation instead. I could track this down to the exact code line in MIMWAL if anyone is still maintaining this... For now I circumvented the issue by running a query with a powershell activity... |
Hi Nilesh
We struggling over an issue in the last days, where the actual release not resolve [//Request/Target]. In older Versions in case of a PostProcessing Request after a Object Deletion the Target Object ID could be resolved over the Request (Attribute Target).
This is only in a constellation of a CompositeRequest, and there it is the same if it is a PostProcessing after deletion or modify.
We tried [//Request/Target], [//Request/RequestParameter/Target] and of course [//Target] but in case of a PostProcessing after a Deletion that can't be used successfully.
We haven't yet invest time to look into the Source Code. But do you know, if this is an result of the investment from Version v2.16.0320.0?
We want to know your opinion before we invest many hours in this.
Thanks a lot for you answer
Thomas
The text was updated successfully, but these errors were encountered: