11-04-2014 10:57 AM
var connector = remote.connect("alfresco");
var user = connector.call("ervice/api/login?u=admin&pw=password").toString();
var indexHeadFin = user.indexOf(">");
var ticket = user.substring(indexHeadFin+10);
var indexFin = ticket.indexOf("<");
ticket = ticket.substring(0, indexFin);
var result = connector.call("ervice/api/workflow-instances/activiti$121407?includeTasks=true&alf_ticket="+ticket);
logger.warn(result.toString());
<bean id="webscripts.container" class="org.alfresco.repo.web.scripts.TenantRepositoryContainer" parent="webscripts.abstractcontainer" init-method="setup">
<property name="configService" ref="webscripts.config" />
<property name="name"><value>Repository</value></property>
<property name="scriptObjects">
<map merge="true">
…
<entry key="remote">
<ref bean="webscripts.script.remote" />
</entry>
…
11-21-2014 05:41 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.