Do you want to add a processing logic on your document attached to the workflow as a package?
Here are the few easy steps to do the same.
//processing logic
}
Should include all the logic.
Your workflow method is ready for testing. Now do you feel it’s so difficult to create workflow methods…I am sure you won’t J
Here are the few easy steps to do the same.
1) Create a documentum project in your composer workspace.
2) Write a java method with the processing logic which you want to perform on your document. Make sure that a java file implements IDmMethod interface.
Method public void execute(Map params, OutputStream ostream) throws Exception
{//processing logic
}
Should include all the logic.
3) Create a method artifact and give attribute values as below:
· Name: Method Name
· Type: Java
· Command: The java file name along with the package e.g. com.myProject.methods.workflowMethods. WorkflowTestMethod
Select the checkbox: use as workflow method(This attribute will make this method as a workflow method and you can select the same while designing your workflow template.)
Other setting depends how and where you want to run your method i.e To run on Content Server or Application Server.
Run on Content Server or Method server.
4) Save the method and install into repository.
5) Login to content server and deploy the java class files in method server methods.
6) Restart the content server.
7) Login to workflow builder\process builder. Select the workflow template for which you want to add workflow method.
8) Create an auto activity and select above defined method as workflow method for the activity.
9) Select Performer as Docbase Owner for the activity.
10) Save and Install the template into repository.
Your workflow method is ready for testing. Now do you feel it’s so difficult to create workflow methods…I am sure you won’t J
HAPPY LEARING!!!
No comments:
Post a Comment