Package org.apache.ode.jacob

Examples of org.apache.ode.jacob.JacobRunnable


    public void unregisterActivityForRecovery(ActivityRecoveryChannel channel) {
        _dao.deleteActivityRecovery(channel.export());
    }

    public void recoverActivity(final String channel, final long activityId, final String action, final FaultData fault) {
        vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 3168964409165899533L;

            public void run() {
                ActivityRecoveryChannel recovery = importChannel(channel, ActivityRecoveryChannel.class);
                __log.info("ActivityRecovery: Recovering activity " + activityId + " with action " + action +
View Full Code Here


    public void recoverActivity(final String channel, final long activityId, final String action, FaultInfo fault) {
        // TODO: better translation here?
        final FaultData fdata = (fault != null) ? new FaultData(fault.getFaultName(), null, fault.getExplanation()) : null;

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 3168964409165899533L;

            public void run() {
                ActivityRecoveryChannel recovery = importChannel(channel, ActivityRecoveryChannel.class);
                __log.info("ActivityRecovery: Recovering activity " + activityId +
View Full Code Here

        final String id = responseChannel.export();
        _brc.cancelSelect(id);

        getORM().cancel(id);

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 6157913683737696396L;

            public void run() {
                TimerResponseChannel responseChannel = importChannel(id, TimerResponseChannel.class);
                responseChannel.onCancel();
View Full Code Here

     * @see org.apache.ode.bpel.engine.rapi.OdeInternalInstance#onMyRoleMessageExchange(java.lang.String, java.lang.String)
     */
    public void onSelectEvent(final String selectId, final String messageExchangeId, final int selectorIdx) {
        getORM().associate(selectId, messageExchangeId);

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 3168964409165899533L;

            public void run() {
                // NOTE: we chose the selectId to be the exported representation of the pick response channel!
                PickResponseChannel responseChannel = importChannel(selectId, PickResponseChannel.class);
View Full Code Here

     * @see org.apache.ode.bpel.engine.rapi.OdeInternalInstance#onTimerEvent(java.lang.String)
     */
    public void onTimerEvent(final String timerId) {
        getORM().cancel(timerId);

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = -7767141033611036745L;

            public void run() {
                // NOTE: note short cut, we chose timer id to be the same as the exported channel representation.
                TimerResponseChannel responseChannel = importChannel(timerId, TimerResponseChannel.class);
View Full Code Here

        final String id = responseChannel.export();
        _brc.cancelSelect(id);

        getORM().cancel(id);

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 6157913683737696396L;

            public void run() {
                TimerResponseChannel responseChannel = importChannel(id, TimerResponseChannel.class);
                responseChannel.onCancel();
View Full Code Here

     * @see org.apache.ode.bpel.engine.rapi.OdeInternalInstance#onMyRoleMessageExchange(java.lang.String, java.lang.String)
     */
    public void onSelectEvent(final String selectId, final String messageExchangeId, final int selectorIdx) {
        getORM().associate(selectId, messageExchangeId);

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 3168964409165899533L;

            public void run() {
                // NOTE: we chose the selectId to be the exported representation of the pick response channel!
                PickResponseChannel responseChannel = importChannel(selectId, PickResponseChannel.class);
View Full Code Here

     * @see org.apache.ode.bpel.engine.rapi.OdeInternalInstance#onTimerEvent(java.lang.String)
     */
    public void onTimerEvent(final String timerId) {
        getORM().cancel(timerId);

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = -7767141033611036745L;

            public void run() {
                // NOTE: note short cut, we chose timer id to be the same as the exported channel representation.
                TimerResponseChannel responseChannel = importChannel(timerId, TimerResponseChannel.class);
View Full Code Here

    public void recoverActivity(final String channel, final long activityId, final String action, FaultInfo fault) {
        // TODO: better translation here?
        final FaultData fdata = (fault != null) ? new FaultData(fault.getFaultName(), null, fault.getExplanation()) : null;

        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 3168964409165899533L;

            public void run() {
                ActivityRecoveryChannel recovery = importChannel(channel, ActivityRecoveryChannel.class);
                __log.info("ActivityRecovery: Recovering activity " + activityId +
View Full Code Here

            evt.setNewState(ProcessState.STATE_ACTIVE);
            sendEvent(evt);
        }

        final String mexId = mex.getMessageExchangeId();
        _vpu.inject(new JacobRunnable() {
            private static final long serialVersionUID = 3168964409165899533L;

            public void run() {
                PickResponse pickResponse = importChannel(responsechannel, PickResponse.class);
                pickResponse.onRequestRcvd(idx, mexId);
View Full Code Here

TOP

Related Classes of org.apache.ode.jacob.JacobRunnable

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.