rotty3000/liferay-portal — pull request #107 by KocsisDaniel (2012-09-12 09:13:51+00:00)
Title: LPS-25546 Change workflow status when turn on staging

Hello Ray,

this is the fix we have talked about some days ago. I hesitated between two ways to resolve the problem:

1, add a servicecontext attribute (e.g.: enableStagingInProgress) and update the status when the service creates the new layoutrevision objects and variable value is true.(like imported in JALSI.updateArticle()) It could be good because we do all the operations only once, but it is bad because we have to modify the very generic add method and it is hard to find the connection between staging and layoutRevisionLocalService for the other programmers.

2, use stagingImpl because logically this component requires the status update. In this way we have to query up one more time all the newly created revision and mass update them.

I chose the 2nd because for me it is a more clear and more easily maintainable solution.

Please let me know your opinion!

Thanks,
Daniel