Indicates whether activity is for compensation.

@return true if this activity is for compensation.
179
public boolean isCompensationHandler() {
    Boolean isForCompensation = (Boolean) getProperty(BpmnParse.PROPERTYNAME_IS_FOR_COMPENSATION);
    return Boolean.TRUE.equals(isForCompensation);
  }
197636
public boolean isWicket() {
        String symbolicName = getBundle().getSymbolicName();
        if (symbolicName.startsWith(APACHE_WICKET_NAMESPACE)) {
            return true;
        }
        return false;
    }
1126720
public B compensation() {
    CompensateEventDefinition compensateEventDefinition = createCompensateEventDefinition();
    element.getEventDefinitions().add(compensateEventDefinition);

    return myself;
  }
476019
public function isOnReturn()
	{
		if ($this->idLastReturn != null) {
			$currentStatusReturn = $this->PayReturn()->find($this->idLastReturn)->status;

			return $currentStatusReturn == 'onReturn';
		}

		return false;
	}
413744
public static boolean isSupported() {
        return Navigator.webkitGetUserMedia != null
                || Navigator.getUserMedia != null
                || Navigator.mozGetUserMedia != null
                || Navigator.msGetUserMedia != null;
    }
1342140
public boolean isPolicyExceeded() {
    boolean withinMaxRetries = maxAttempts == -1 || attemptCount < maxAttempts;
    boolean withinMaxDuration = maxDuration == -1 || System.nanoTime() - startTime < maxDuration;
    return !withinMaxRetries || !withinMaxDuration;
  }
885736
private boolean activityIsMilestone(Activity activity)
   {
      String type = activity.getType();
      return type != null && type.indexOf("Milestone") != -1;
   }
1023587
public boolean sameState(final DoubleAdder other) {
		return Double.compare(_sum, other._sum) == 0 &&
			Double.compare(_simpleSum, other._simpleSum) == 0 &&
			Double.compare(_compensation, other._compensation) == 0;
	}
292474
public boolean isOver() {
        if (!isOver) {
            final long now = System.currentTimeMillis();
            isOver = now - startTime >= duration;
        }
        return isOver;
    }
1359925
public boolean isTooMany() {

        return (m_tooManyCount != null)
            || ((m_workflowResources != null)
                && (m_workflowResources.size() > OpenCms.getWorkflowManager().getResourceLimit()));
    }
211895
public boolean isActive() {

        if (!m_enabled) {
            return false;
        }
        long currentTime = System.currentTimeMillis();
        return ((currentTime > m_timeStart) && (currentTime < m_timeEnd));
    }
120406
@Override
    public boolean isTransactionActive() {

        if (this.getTransactionManager() != null)
            try {
                if (this.getTransactionManager().getStatus() == Status.STATUS_ACTIVE)
                    return true;

            } catch (SystemException se) {
                if (TC.isDebugEnabled()) {
                    Tr.debug(TC, "Returning isTransactionActive() false: " + se.getMessage());
                }
                return false;
            }
        return false;
    }
144212
public boolean isMatchingAny() {
        if (this.levels == null) {
            return false;
        }
        int i = 0;
        int n = this.levelCounter;
        while (n-- != 0) {
            if (this.levels[i].isSelectionActive()) {
                return true;
            }
            i++;
        }
        return false;
    }
742193
public boolean tryMarkSlotActive(JobID jobId, AllocationID allocationId) {
		TaskSlot taskSlot = getTaskSlot(allocationId);

		if (taskSlot != null && taskSlot.isAllocated(jobId, allocationId)) {
			return taskSlot.markActive();
		} else {
			return false;
		}
	}
447053
public boolean isActive() {
		final long now = System.currentTimeMillis();
		final long start = values.getStart();
		final long end = start + values.getLeft();
		// TODO : Ensure predicate consistency.
		return now >= start && now <= end;
	}
592530
public boolean isCompleted() {
    WorkingState state = getWorkingState();
    return state == WorkingState.SUCCESSFUL || state == WorkingState.COMMITTED || state == WorkingState.FAILED;
  }
565765
public boolean markFree() {
		if (isEmpty()) {
			state = TaskSlotState.FREE;
			this.jobId = null;
			this.allocationId = null;

			return true;
		} else {
			return false;
		}
	}