12-05-2013 05:00 AM
<import resource="classpath:alfresco/site-webscripts/org/alfresco/components/workflow/workflow.lib.js">
<import resource="classpath:alfresco/site-webscripts/org/alfresco/callutils.js">
<import resource="classpath:alfresco/site-webscripts/org/alfresco/components/calendar/helper.js">
model.hiddenTaskTypes = getHiddenTaskTypes();
var json = remote.call("/api/sites/" + page.url.templateArgs.site + "/memberships");
var currentUser = user.name;
var role = null;
var myConfig = new XML(config.script),
filters = [];
if(json.status == 200)
{
var obj = eval('(' + json + + ')');
role = obj.role;
}
if(role !== null)
{
model.role = role;
}
else
{
model.role = "Manager";
}
<#if role = "Manager">
<span class="align-right yui-button-align">
<span class="first-child">
<a href="${page.url.context}/page/start-workflow?referrer=tasks" class="theme-color-1">
<img src="${url.context}/res/components/images/workflow-16.png" style="vertical-align: text-bottom" width="16" />
${msg("link.startWorkflow")}</a>
</span>
</span>
</#if>
12-09-2013 10:40 PM
12-11-2013 06:12 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.