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>
…
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.