Home > Mobile >  Why my Soffid JSON REST Web Services Connector does not update an object in the target system?
Why my Soffid JSON REST Web Services Connector does not update an object in the target system?

Time:09-17

I am trying to connect my Soffid 3 server with our custom web application named Schrift. I am using а JSON REST Web Services Connector for this purpose. I added REST Web service plugin and then configured an agent with JSON/XML/SOAP Rest webservice type.
Loading of objects is working fine. My REST connector connects to the web service successfully and gets data of the accounts.
The problem is when I am trying to update some data (for example, I am trying to lock an account), nothing happens. And unfortunately I don't know what should be happening. When should REST connector send updated data to the managed system and in which way? I didn't find any log entries saying that REST connector was trying to update an object on managed system. Maybe I did smth wrong or missed something.
I would appreciate for any help. I can post any conf or log details if you need.


Update#1
(I did some investigation after the first answer)

  1. I checked the agent settings: Read only and Manual account creation are set to no
  2. The account was set to unmanaged type, but I succeeded in changing its type to shared and then to single without getting an error. Now it is set to single
  3. The task queue is empty.

Also I've checked that update method is present and update properties are set correctly. updateParams is not set (it means that all attributes should be sent to the managed system).
But when I change status of the account (from Enable to Disable), nothing happens.
In the console log I can see only these lines
14-Sep-2021 13:26:29.708 INFO [BPM-Scheduler:192.168.7.121:1] com.soffid.iam.bpm.job.JobExecutorThread.run No job to execute
When I manually run the task Analize impact for changes on Schrift, Execution log shows

Changes detected for accounts
=============================
NO CHANGE DETECTED
Changes detected for roles
=============================
NO CHANGE DETECTED

CodePudding user response:

The system should have created a UpdateAccount task in the task queue. Please, verify:

  1. The task engine is in automatic mode. In read-only or manual mode, no task will be created.
  2. If you are updating an account, check the account is not set as unmanaged. In that case, no tasks is created.
  3. Finally, verify the task queue has not held the task up.

CodePudding user response:

Have you checked the engine mode? Look at Main Menu > Administration > Configure Soffid > Integration engine > Smart engine settings

It should be set to automatic.

  • Related