as per documentation how to get following details for store into saperate variable and use to make task url
at runtime
1.current Host
2.current Port
3.Current Process Name
4. Current Procecss version
5.Activity Name (task name)
6.ActivityInstance ID
pl , pl provide me following data script to use for email task url
Hello,
you can check this script:
import org.bonitasoft.engine.bpm.flownode.ActivityInstance;
import org.bonitasoft.engine.bpm.process.ProcessDefinition;
StringBuffer buffer = new StringBuffer();
ProcessDefinition processDefinition = apiAccessor.getProcessAPI().getProcessDefinition(processDefinitionId);
ActivityInstance activityInstance = apiAccessor.getProcessAPI().getActivityInstance(activityInstanceId);
buffer.append(“http://”);
buffer.append(“localhost:8080”);
buffer.append(“/bonita/portal/homepage?ui=form&locale=en&theme=”);
buffer.append(processDefinitionId);
buffer.append(“#form=”);
buffer.append(processDefinition.getName());
buffer.append(“–”);
buffer.append(processDefinition.getVersion());
buffer.append(“–”);
buffer.append(activityInstance.getName());
buffer.append(“$entry&mode=app&task=”);
buffer.append(activityInstanceId);
buffer.append(“&assignTask=true”);
return buffer.toString();
Of course, you should replace localhost:8080 by the server address. You could use a parameter for that, if you are using Subscription edition.
Hope this helps,
Haris
dont work form me show me other thinks
Thank you soooo mcuh Haris ,