see my replies embedded below.


On 12/04/2018 21:52, varontron wrote:
Hi,Executed the following:
  In 2.0.9-SNAPSHOT (no extensions), created some users, some in ldap and
pulled, some in Syncope and pushed. All have status = 'Created'

Yes, when using the DefaultUserWorkflowAdapter [1], this is expected.

  Rebuilt and installed 2.0.9-SNAPSHOT with '-P all' to include extensions
  Created a new user successfully in console, assuming workflow took over,
and user has status = 'Active'

Yes, when using the ActivitiUserWorkflowAdapter [2] / FlowableUserWorkflowAdapter [3] and the default workflow definition [4] [5], this is expected too.

  Could not change any original user's status to 'Active' (how?)
  Attempted to delete users in order to re-add, and incurred error alerts in
  Tried a few things, eventually noticed users were successfully deleted from
  Users still exist in syncope with status = 'Created' and no user-task is
  Can't delete users in syncope, due to 'Empty workflow id'
  Pulling changes from ldap isn't working either perhaps bc of configs.
Is there any option other than dropping db and reloading?

No, no other options: the Workflow Adapter is something that must be chosen upfront, and users created under a certain adapter cannot be generally manipulated by another adapter.

What is the prescribed method if deploying without Activiti, then say,
adding 100s of users, and then enabling Activiti?  Is there a prescribed
import/export or something?

When using Activiti / Flowable, a workflow instance is started at the same time that an user is created; enabling Activiti / Flowable after user creation means leaving such user into an inconsistent state.

[1] https://github.com/apache/syncope/blob/2_0_X/core/workflow-java/src/main/java/org/apache/syncope/core/workflow/java/DefaultUserWorkflowAdapter.java [2] https://github.com/apache/syncope/blob/2_0_X/core/workflow-activiti/src/main/java/org/apache/syncope/core/workflow/activiti/ActivitiUserWorkflowAdapter.java [3] https://github.com/apache/syncope/blob/2_0_X/core/workflow-flowable/src/main/java/org/apache/syncope/core/workflow/flowable/FlowableUserWorkflowAdapter.java [4] https://github.com/apache/syncope/blob/2_0_X/core/workflow-activiti/src/main/resources/userWorkflow.bpmn20.xml [5] https://github.com/apache/syncope/blob/2_0_X/core/workflow-flowable/src/main/resources/userWorkflow.bpmn20.xml

Francesco Chicchiriccò

Tirasa - Open Source Excellence

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail

Reply via email to