Forums / Developer / How to using workflow to save data in other place?

How to using workflow to save data in other place?

Author Message

Quynh Nguyen

Thursday 12 February 2009 5:56:46 am

I'm trying to use ezPublish with other system. But for interactive data between two systems, I think the workflow/event can be used to solve my issue. Let me explain here:

- When contributor compose a draft version and it will be waited for approving from moderator.
- When moderator check and approve the content object, it will be publish to the front-site.
- I will insert another workflow before publishing the content. This event will use the data of object and save to the other system. And update the information of object had been created in another system to an added field (for example: id of the record in the other system) of the object in ezpublish system. Then saving object information and publish it in ezpublish.

Am I right to do this way?

I want to create one object in two different systems and the id of object in other system will be save in a field of object in ezPublish system. That's all what I need. If my above idea is not right, please give me some comment or help. If there are some relative project/contribs similar or can help me a little to write my own, please give me the reference information.

Thank you very much!

Quynh Nguyen

Thursday 12 February 2009 6:08:52 am

Or another idea:

After the content object is published. Is there any way to add a workflow/event to publish it in other system, and then update the information of new created object in other system to an added field in object on ezPublish system?

Thanks so much!

Kristof Coomans

Monday 16 February 2009 11:58:36 pm

Hi

Indeed, a workflow at the publish / after trigger would work. There are some different options to relate the objects:

- store the external ID in the remote_id attribute of the content object in eZ Publish
- store the external ID in a separate content object attribute of the object in eZ Publish

- store the remote id of the eZ Publish content object with the object in the external system

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org