On 12/05/22 11:25, Lionel SCHWARZ wrote:
----- Le 12 Mai 22, à 10:37, Francesco Chicchiriccò ilgro...@apache.org a écrit 
:

On 12/05/22 09:46, Davide Ceravolo wrote:
Hi Francesco,

The use case is as follows, I would need cyclically to be able to run a flow
where the various supervisors can tell whether the account is in use or not at
the end of which it generates a report.

With such requirements, I would base the implementation on Request Management
[1].

Essentially, you can define a BPMN flow with multi-level approval where you can
add Java Tasks fetching data from Syncope internal storage and attached
Resources.
(I know this sounds quite generic, but actual implementation is really dependent
on details).
Hi Francesco,
If I understand correctly, in the case you mention, the user starts the request using the 
"Requests" tab in the end user UI. Is there a way for someone else to start 
this request on behalf of the user (following then the same workflow). If yes how?

Yes, this is possible.

Check this integration test case [1] which first creates a new user, then 
starts as admin a new request [2] for that user: you can check the difference 
between [2] and [3] where instead a request is started by the user itself.

You can check from Swagger UI or the REST reference [4] that the corresponding 
endpoint is

POST /flowable/userRequests/start/{bpmnProcess}

Other endpoints under the same service can be used to advance the process, 
submit forms, etc. again available both as plain user (for self) or admin (for 
other users).

Most of such features are also available from Admin Console.

HTH
Regards.

[1] 
https://github.com/apache/syncope/blob/2_1_X/fit/core-reference/src/test/java/org/apache/syncope/fit/core/UserRequestITCase.java#L76
[2] 
https://github.com/apache/syncope/blob/2_1_X/fit/core-reference/src/test/java/org/apache/syncope/fit/core/UserRequestITCase.java#L82
[3] 
https://github.com/apache/syncope/blob/2_1_X/fit/core-reference/src/test/java/org/apache/syncope/fit/core/UserRequestITCase.java#L201
[4] https://syncope.apache.org/rest/2.1/index.html

--
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/

Reply via email to