03-03-2010 10:13 AM
03-03-2010 11:05 AM
var tasks = new Array();
var result = remote.call("/slingshot/dashlets/my-tasks");
var result2 = remote.call("/api/sites/" + page.url.templateArgs.site);
var site = eval('(' + result2 + ')').title;
var sitename = site.split('_')[1].split(' ')[0].replace(/\s+/g, '');
var data = eval('(' + result + ')');
if (data.tasks !== null)
{
for (var i=0,len = data.tasks.length;i<len;i++)
{
if(data.tasks[i].description.replace(/\s+/g, '')==sitename){
tasks.push(data.tasks[i]);
}
}
}
03-05-2010 08:40 AM
03-05-2010 11:28 AM
workflow.getDefinitionByName('nom de mon workflow')
Cela ne fonctionne pas ….03-08-2010 08:35 AM
03-08-2010 01:18 PM
var list = new Array();
var name= url.templateArgs.name;
var selectedworkflow;
var tasks = new Array();;
var works = workflow.getDefinitionByName("jbpm$workflowname").getActiveInstances();
for each(single in works)
{
if(single.description == name){
selectedworkflow = single.getPaths();
for each(path in selectedworkflow){
tasks=path.getTasks();
for each(task in tasks){
list.push(task);
}
}
}
}
model.tasklist = list;
model.work = works;
model.name = name;
03-09-2010 10:20 AM
03-09-2010 12:51 PM
public Scriptable getAllTasks() {
WorkflowService workflowService = serviceRegistry.getWorkflowService();
WorkflowTaskQuery query = new WorkflowTaskQuery();
query.setActive(active);
query.setTaskState(null);
query.setProcessId(id);
ArrayList<Serializable> completedtasks = new ArrayList<Serializable>();
List<WorkflowTask> tasks = workflowService.queryTasks(query);
for (WorkflowTask task : tasks)
{
completedtasks.add(new JscriptWorkflowTask(task, this.serviceRegistry, this.scope));
}
Scriptable completedTasksScriptable =
(Scriptable)new ValueConverter().convertValueForScript(this.serviceRegistry, this.scope, null, completedtasks);
return completedTasksScriptable;
}
03-15-2010 10:07 AM
05-19-2013 10:20 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.