Examples of InstanceFilter


Examples of org.apache.ode.bpel.common.InstanceFilter

    }

    public InstanceInfoListDocument listInstances(String filter, String order, int limit) {
        InstanceInfoListDocument ret = InstanceInfoListDocument.Factory.newInstance();
        final TInstanceInfoList infolist = ret.addNewInstanceInfoList();
        final InstanceFilter instanceFilter = new InstanceFilter(filter, order, limit);
        try {

            _db.exec(new BpelDatabase.Callable<Object>() {
                public Object run(BpelDAOConnection conn) {
                    Collection<ProcessInstanceDAO> instances = conn.instanceQuery(instanceFilter);
View Full Code Here

Examples of org.apache.ode.bpel.common.InstanceFilter

        }
        return genInstanceInfoDocument(iid);
    }

    public Collection<Long> delete(String filter) {
        final InstanceFilter instanceFilter = new InstanceFilter(filter);

        List<Long> ret = new LinkedList<Long>();
        try {

            _db.exec(new BpelDatabase.Callable<Object>() {
View Full Code Here

Examples of org.apache.ode.bpel.common.InstanceFilter

    //
    // EVENT RETRIEVAL
    //
    public List<String> getEventTimeline(String instanceFilter, String eventFilter) {
        final InstanceFilter ifilter = new InstanceFilter(instanceFilter, null, 0);
        final BpelEventFilter efilter = new BpelEventFilter(eventFilter, 0);

        List<Date> tline = dbexec(new BpelDatabase.Callable<List<Date>>() {
            public List<Date> run(BpelDAOConnection session) throws Exception {
                return session.bpelEventTimelineQuery(ifilter, efilter);
View Full Code Here

Examples of org.apache.ode.bpel.common.InstanceFilter

        });
        return ret;
    }

    public EventInfoListDocument listEvents(String instanceFilter, String eventFilter, int maxCount) {
        final InstanceFilter ifilter = new InstanceFilter(instanceFilter, null, 0);
        final BpelEventFilter efilter = new BpelEventFilter(eventFilter, maxCount);
        EventInfoListDocument eid = EventInfoListDocument.Factory.newInstance();
        final TEventInfoList eil = eid.addNewEventInfoList();
        dbexec(new BpelDatabase.Callable<Object>() {
            public Object run(BpelDAOConnection session) throws Exception {
View Full Code Here

Examples of org.apache.ode.bpel.common.InstanceFilter

    private void genInstanceSummaryEntry(TInstanceSummary.Instances instances, TInstanceStatus.Enum state,
            ProcessConf pconf) {
        instances.setState(state);
        String queryStatus = InstanceFilter.StatusKeys.valueOf(state.toString()).toString().toLowerCase();
        final InstanceFilter instanceFilter = new InstanceFilter("status=" + queryStatus
            + " pid="+ pconf.getProcessId());
       
        int count = dbexec(new BpelDatabase.Callable<Integer>() {

            public Integer run(BpelDAOConnection conn) throws Exception {
View Full Code Here

Examples of org.apache.ode.bpel.common.InstanceFilter

    }

    private void getInstanceSummaryActivityFailure(final TInstanceSummary summary, ProcessConf pconf) {
        String queryStatus = InstanceFilter.StatusKeys.valueOf(TInstanceStatus.ACTIVE.toString()).toString()
                .toLowerCase();
        final InstanceFilter instanceFilter = new InstanceFilter("status=" + queryStatus
            + " pid="+ pconf.getProcessId());
        dbexec(new BpelDatabase.Callable<Void>() {

            public Void run(BpelDAOConnection conn) throws Exception {
                Date lastFailureDt = null;
View Full Code Here

Examples of org.apache.ode.bpel.common.InstanceFilter

        return _em.createQuery(query.toString()).getResultList();
  }

  
  public Collection<ProcessInstanceDAO> instanceQuery(String expression) {
      return instanceQuery(new InstanceFilter(expression));
  }
View Full Code Here

Examples of org.apache.ode.bpel.common.InstanceFilter

    }

    public InstanceInfoListDocument listInstances(String filter, String order, int limit) {
        InstanceInfoListDocument ret = InstanceInfoListDocument.Factory.newInstance();
        final TInstanceInfoList infolist = ret.addNewInstanceInfoList();
        final InstanceFilter instanceFilter = new InstanceFilter(filter, order, limit);
        try {

            _db.exec(new BpelDatabase.Callable<Object>() {
                public Object run(BpelDAOConnection conn) {
                    Collection<ProcessInstanceDAO> instances = conn.instanceQuery(instanceFilter);
View Full Code Here

Examples of org.apache.ode.bpel.common.InstanceFilter

        }
        return genInstanceInfoDocument(iid);
    }

    public Collection<Long> delete(String filter) {
        final InstanceFilter instanceFilter = new InstanceFilter(filter);

        List<Long> ret = new LinkedList<Long>();
        try {

            _db.exec(new BpelDatabase.Callable<Object>() {
View Full Code Here

Examples of org.apache.ode.bpel.common.InstanceFilter

    //
    // EVENT RETRIEVAL
    //
    public List<String> getEventTimeline(String instanceFilter, String eventFilter) {
        final InstanceFilter ifilter = new InstanceFilter(instanceFilter, null, 0);
        final BpelEventFilter efilter = new BpelEventFilter(eventFilter, 0);

        List<Date> tline = dbexec(new BpelDatabase.Callable<List<Date>>() {
            public List<Date> run(BpelDAOConnection session) throws Exception {
                return session.bpelEventTimelineQuery(ifilter, efilter);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.