You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by Mikael Ekblom <mi...@arcada.fi> on 2017/08/01 14:07:53 UTC

DefaultLogicActions and pull

Hi,

I have tried to move some related logic for the whole realm to the DefaultLogicActions-implementation within our Syncope. Now though I can see that during the pull and the subsequent creation of the users, the defaultlogicaction beforeCreate, afterCreate etc. will never be triggered during actual pull and the subsequent creation. Updates after the pull (if a field changes) do trigger the suitable functions (beforeUpdate, afterupdate etc. ).

The action is specified for the realm, where I put the users during the pull. No error messages or anything indication a serious problem.

Am I missing something or should it just not be possible to do? I think the sync process should generate a create request towards the core at some point even if you pull the information from an external source?

Regards,

        Mikael




Mikael Ekblom
Systemutvecklare/System developer
Arcada, IT

Jan-Magnus Janssons plats 1,
FIN-00560 Helsingfors,
Finland

TFn: +358 207 699 467
Mobil: +358 207 699 467


RE: DefaultLogicActions and pull

Posted by Mikael Ekblom <mi...@arcada.fi>.
Hi,

Yeah, I had them there. I somehow guessed that this is the case and I’ll just have to move them back then…☺


Regards,

      Mikael

From: Francesco Chicchiriccò [mailto:ilgrosso@apache.org]
Sent: tiistai 1. elokuuta 2017 17.15
To: user@syncope.apache.org
Subject: Re: DefaultLogicActions and pull

On 01/08/2017 16:07, Mikael Ekblom wrote:
Hi,

I have tried to move some related logic for the whole realm to the DefaultLogicActions-implementation within our Syncope. Now though I can see that during the pull and the subsequent creation of the users, the defaultlogicaction beforeCreate, afterCreate etc. will never be triggered during actual pull and the subsequent creation. Updates after the pull (if a field changes) do trigger the suitable functions (beforeUpdate, afterupdate etc. ).

The action is specified for the realm, where I put the users during the pull. No error messages or anything indication a serious problem.

Am I missing something or should it just not be possible to do? I think the sync process should generate a create request towards the core at some point even if you pull the information from an external source?

Hi Mikael,
LogicActions are triggered when the Logic layer is involved, e.g. during REST calls.

https://syncope.apache.org/docs/reference-guide.html#overview

If you need to perform custom tasks during pull, use PullActions.

HTH
Regards.


--

Francesco Chicchiriccò



Tirasa - Open Source Excellence

http://www.tirasa.net/



Member at The Apache Software Foundation

Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail

http://home.apache.org/~ilgrosso/

Re: DefaultLogicActions and pull

Posted by Francesco Chicchiriccò <il...@apache.org>.
On 01/08/2017 16:07, Mikael Ekblom wrote:
>
> Hi,
>
> I have tried to move some related logic for the whole realm to the 
> DefaultLogicActions-implementation within our Syncope. Now though I 
> can see that during the pull and the subsequent creation of the users, 
> the defaultlogicaction beforeCreate, afterCreate etc. will never be 
> triggered during actual pull and the subsequent creation. Updates 
> after the pull (if a field changes) do trigger the suitable functions 
> (beforeUpdate, afterupdate etc. ).
>
> The action is specified for the realm, where I put the users during 
> the pull. No error messages or anything indication a serious problem.
>
> Am I missing something or should it just not be possible to do? I 
> think the sync process should generate a create request towards the 
> core at some point even if you pull the information from an external 
> source?
>

Hi Mikael,
LogicActions are triggered when the Logic layer is involved, e.g. during 
REST calls.

https://syncope.apache.org/docs/reference-guide.html#overview

If you need to perform custom tasks during pull, use PullActions.

HTH
Regards.

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/