Package org.aperteworkflow.search

Examples of org.aperteworkflow.search.ProcessInstanceSearchAttribute


    }

    @Override
    public Collection<ProcessInstanceSearchAttribute> getAttributes() {
        return Arrays.asList(
                new ProcessInstanceSearchAttribute(getKey(), value, false),
                new ProcessInstanceSearchAttribute(getBpmVariableName(), value, false)
        );
    }
View Full Code Here


    @Override
    public Collection<ProcessInstanceSearchAttribute> getAttributes() {
        List<ProcessInstanceSearchAttribute> attrs = new ArrayList<ProcessInstanceSearchAttribute>();
        for (ProcessInstanceDictionaryItem e : items) {
            attrs.add(new ProcessInstanceSearchAttribute("map_key", e.getKey()));
            attrs.add(new ProcessInstanceSearchAttribute("map_value", e.getValue()));
        }
        return attrs;
    }
View Full Code Here

    @Override
    public Collection<ProcessInstanceSearchAttribute> getAttributes() {
        List<ProcessInstanceSearchAttribute> attrs = new ArrayList<ProcessInstanceSearchAttribute>();
        for (ProcessComment pc : comments) {
            attrs.add(new ProcessInstanceSearchAttribute("comment_body", pc.getBody()));
            attrs.add(new ProcessInstanceSearchAttribute("comment_title", pc.getComment()));
        }
        return attrs;
    }
View Full Code Here

        long time = System.currentTimeMillis();
        //update search indexes
        ProcessInstanceSearchData searchData = new ProcessInstanceSearchData(processInstance.getId());
        //put some default search attributes
        if (creator != null) {
            searchData.addSearchAttribute(new ProcessInstanceSearchAttribute("creator_login", creator.getLogin()));
            searchData.addSearchAttribute(new ProcessInstanceSearchAttribute("creator_email", creator.getEmail()));
            searchData.addSearchAttribute(new ProcessInstanceSearchAttribute("creator_realname", creator.getRealName()));
        }
        searchData.addSearchAttributes(new String[][]{
                {"instance_key", processInstance.getExternalKey()},
                {"definition_name", processInstance.getDefinitionName()},
                {"instance_description", processInstance.getDescription()},
View Full Code Here

TOP

Related Classes of org.aperteworkflow.search.ProcessInstanceSearchAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.