[midPoint] Multiple Change Processor Failure in Config.xml

Anand Kothekar anand.kothekar at confluxsys.com
Mon Mar 30 12:52:49 CEST 2015


Hi Pavol,

There is no hurry, we already have work around for that so its fine if it
takes some time.

 when you modify a role R1 by e.g. adding assignment of R2, modifying
assignment of R3 and deleting assignment of R4 (all with regards to R1), do
you want to create
one approval request? Or three (one for R2, one for R3, one for R4)? And to
whom you want to direct these requests? To approvers of R1, or to approvers
of R2/R3/R4?

for above scenario, I have requirement of three approvals going to R1,R2
and R3.

And All The Very Best for Midpoint release....


Regards,
Anand Kothekar

On Mon, Mar 30, 2015 at 2:44 PM, Pavol Mederly <mederly at evolveum.com> wrote:

>  Hello Anand,
>
> it is better *not* to write additional change processors (at least in the
> current state of the workflow module). The error you've encountered is
> related to this fact:
>
> No qualifying bean of type
> [com.evolveum.midpoint.wf.impl.processors.primary.PrimaryChangeProcessor]
> is defined:
> expected single matching bean but found 2:
> primaryRoleChangeProcessor,primaryUserChangeProcessor
>
> (It's basically saying that I haven't prepared the module for multiple
> implementations of PrimaryChangeProcessor type.)
>
> Recently I have removed primaryUserChangeProcessor altogether and replaced
> it with general primaryChangeProcessor. So, definitely, there will be just
> one PrimaryChangeProcessor implementation, common for all types of focus
> objects (users, roles, orgs, resources, etc). So, please use this one to
> write your aspects.
>
> Actually, I'm in the middle of refactoring and cleaning up these parts of
> workflow code. I plan to finish it today (although it might not be in the
> cleanest form that is possible, because the 3.1.1 release is approaching
> quickly). So if you could wait a day or two, I could provide you with a
> slightly better foundation for you to start on.
>
> BTW, when you modify a role R1 by e.g. adding assignment of R2, modifying
> assignment of R3 and deleting assignment of R4 (all with regards to R1), do
> you want to create
> one approval request? Or three (one for R2, one for R3, one for R4)? And
> to whom you want to direct these requests? To approvers of R1, or to
> approvers of R2/R3/R4?
>
> Best regards,
> Pavol
>
>
>
> On 30. 3. 2015 7:00, Anand Kothekar wrote:
>
> Hi Pavol,
>
>  Actually I have written this change processor (primaryRoleChangeProcessor)
> and Aspect (RoleAssignmentChangeAspect) .
> you are correct that I want approvals on role assignment
> (add/modify/delete).
>
>  The problem I am facing is, When I define my custom change processor in
> config.xml file and try to start the server, It is not starting up and
> throwing error.
>
>  Please find the attached detailed error logs.
>
>
>
>
>  Thanks,
> Anand
>
> On Fri, Mar 27, 2015 at 8:16 PM, Pavol Mederly <pavol.mederly at gmail.com>
> wrote:
>
>>  Hello Anand,
>>
>> actually, there is no primaryRoleChangeProcessor yet.
>>
>> I'm working on workflows just now; what I'm trying to achieve for 3.1.1
>> is described here:
>> https://wiki.evolveum.com/display/midPoint/Workflow+configuration
>>
>> However, it is not finished yet.
>>
>> By the way, what do you want to achieve? Do you want to approve
>> creation/modification of assignments and inducements for a RoleType?
>>
>> Best regards,
>> Pavol
>>
>>
>>
>> On 27. 3. 2015 15:34, Anand Kothekar wrote:
>>
>>  Hi,
>>
>>     I was playing around with change processor and I am facing an issue
>> when I try to provide two change processors in config.xml
>>
>>                    <workflow>
>>  <changeProcessors>
>>  <primaryUserChangeProcessor>
>>  <aspect>addRoleAssignmentAspect</aspect>
>>  <aspect>addAccountAssignmentAspect</aspect>
>>  </primaryUserChangeProcessor>
>>                                 * <primaryRoleChangeProcessor>*
>> * <aspect>roleAssignmentChangeAspect</aspect>*
>> * </primaryRoleChangeProcessor>   *
>>   </changeProcessors>
>>  </workflow>
>>
>>
>>     I observed that whenever I try to provide more than one change
>> processor it throws an error
>>
>>  * ERROR
>> (com.evolveum.midpoint.web.component.progress.ProgressReporter): Error
>> executing changes, reason: Subresult
>> com.evolveum.midpoint.wf.impl.WfHook.invoke of operation
>> com.evolveum.midpoint.model.api.ModelService.executeChanges is still
>> UNKNOWN during cleanup; during handling of exception
>> com.evolveum.midpoint.util.exception.SystemException: Change processor
>> primaryRoleChangeProcessor could not be found. (class
>> java.lang.IllegalStateException)*
>>
>>
>>  Actually it is only able to read one ChangeProcessor at a time.
>>
>>  Could you please provide me some pointers on this.
>>
>>
>>
>>  Regards,
>> Anand Kothekar
>>
>>
>>  _______________________________________________
>> midPoint mailing listmidPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>>
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>>
>>
>
>
> _______________________________________________
> midPoint mailing listmidPoint at lists.evolveum.comhttp://lists.evolveum.com/mailman/listinfo/midpoint
>
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150330/bb64ebe2/attachment.htm>


More information about the midPoint mailing list