You can check below link for creating custom workflow process step and once you get the resource, you can update the property in the desired path and save the session. Try to use system user if any login session are needed.
You can check below link for creating custom workflow process step and once you get the resource, you can update the property in the desired path and save the session. Try to use system user if any login session are needed.