当前位置: 首页>>代码示例>>Java>>正文


Java CompensateEventDefinition类代码示例

本文整理汇总了Java中org.eclipse.bpmn2.CompensateEventDefinition的典型用法代码示例。如果您正苦于以下问题:Java CompensateEventDefinition类的具体用法?Java CompensateEventDefinition怎么用?Java CompensateEventDefinition使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CompensateEventDefinition类属于org.eclipse.bpmn2包,在下文中一共展示了CompensateEventDefinition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getText

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * This returns the label text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String getText(Object object) {
	String label = ((CompensateEventDefinition) object).getId();
	return label == null || label.length() == 0 ? getString("_UI_CompensateEventDefinition_type")
			: getString("_UI_CompensateEventDefinition_type") + " " + label;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:13,代码来源:CompensateEventDefinitionItemProvider.java

示例2: notifyChanged

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * This handles model notifications by calling {@link #updateChildren} to update any cached
 * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void notifyChanged(Notification notification) {
	updateChildren(notification);

	switch (notification.getFeatureID(CompensateEventDefinition.class)) {
	case Bpmn2Package.COMPENSATE_EVENT_DEFINITION__WAIT_FOR_COMPLETION:
		fireNotifyChanged(new ViewerNotification(notification,
				notification.getNotifier(), false, true));
		return;
	}
	super.notifyChanged(notification);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:20,代码来源:CompensateEventDefinitionItemProvider.java

示例3: basicSetCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetCompensateEventDefinition(
		CompensateEventDefinition newCompensateEventDefinition,
		NotificationChain msgs) {
	return ((FeatureMap.Internal) getMixed())
			.basicAdd(
					Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
					newCompensateEventDefinition, msgs);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:14,代码来源:DocumentRootImpl.java

示例4: setCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setCompensateEventDefinition(
		CompensateEventDefinition newCompensateEventDefinition) {
	((FeatureMap.Internal) getMixed())
			.set(Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
					newCompensateEventDefinition);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:12,代码来源:DocumentRootImpl.java

示例5: basicSetCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetCompensateEventDefinition(
        CompensateEventDefinition newCompensateEventDefinition, NotificationChain msgs) {
    return ((FeatureMap.Internal) getMixed()).basicAdd(
            Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
            newCompensateEventDefinition, msgs);
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:12,代码来源:DocumentRootImpl.java

示例6: caseCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
@Override
public Adapter caseCompensateEventDefinition(
		CompensateEventDefinition object) {
	return createCompensateEventDefinitionAdapter();
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:6,代码来源:Bpmn2AdapterFactory.java

示例7: getCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public CompensateEventDefinition getCompensateEventDefinition() {
	return (CompensateEventDefinition) getMixed()
			.get(Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
					true);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:11,代码来源:DocumentRootImpl.java

示例8: caseCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
@Override
public Adapter caseCompensateEventDefinition(CompensateEventDefinition object) {
    return createCompensateEventDefinitionAdapter();
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:5,代码来源:Bpmn2AdapterFactory.java

示例9: setCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setCompensateEventDefinition(CompensateEventDefinition newCompensateEventDefinition) {
    ((FeatureMap.Internal) getMixed()).set(
            Bpmn2Package.Literals.DOCUMENT_ROOT__COMPENSATE_EVENT_DEFINITION,
            newCompensateEventDefinition);
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:11,代码来源:DocumentRootImpl.java

示例10: marshallIntermediateCatchEvent

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
protected void marshallIntermediateCatchEvent(IntermediateCatchEvent catchEvent,
                                              BPMNPlane plane,
                                              JsonGenerator generator,
                                              float xOffset,
                                              float yOffset,
                                              Map<String, Object> properties) throws JsonGenerationException, IOException {
    List<EventDefinition> eventDefinitions = catchEvent.getEventDefinitions();
    // simulation properties
    setSimulationProperties(catchEvent.getId(),
                            properties);
    if (eventDefinitions.size() == 1) {
        EventDefinition eventDefinition = eventDefinitions.get(0);
        if (eventDefinition instanceof SignalEventDefinition) {
            marshallNode(catchEvent,
                         properties,
                         "IntermediateSignalEventCatching",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else if (eventDefinition instanceof MessageEventDefinition) {
            marshallNode(catchEvent,
                         properties,
                         "IntermediateMessageEventCatching",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else if (eventDefinition instanceof TimerEventDefinition) {
            marshallNode(catchEvent,
                         properties,
                         "IntermediateTimerEvent",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else if (eventDefinition instanceof ConditionalEventDefinition) {
            marshallNode(catchEvent,
                         properties,
                         "IntermediateConditionalEvent",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else if (eventDefinition instanceof ErrorEventDefinition) {
            marshallNode(catchEvent,
                         properties,
                         "IntermediateErrorEvent",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else if (eventDefinition instanceof EscalationEventDefinition) {
            marshallNode(catchEvent,
                         properties,
                         "IntermediateEscalationEvent",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else if (eventDefinition instanceof CompensateEventDefinition) {
            marshallNode(catchEvent,
                         properties,
                         "IntermediateCompensationEventCatching",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else {
            throw new UnsupportedOperationException("Event definition not supported: " + eventDefinition);
        }
    } else {
        throw new UnsupportedOperationException("Intermediate catch event does not have event definition.");
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:76,代码来源:Bpmn2JsonMarshaller.java

示例11: marshallIntermediateThrowEvent

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
protected void marshallIntermediateThrowEvent(IntermediateThrowEvent throwEvent,
                                              BPMNPlane plane,
                                              JsonGenerator generator,
                                              float xOffset,
                                              float yOffset,
                                              Map<String, Object> properties) throws JsonGenerationException, IOException {
    List<EventDefinition> eventDefinitions = throwEvent.getEventDefinitions();
    // simulation properties
    setSimulationProperties(throwEvent.getId(),
                            properties);
    if (eventDefinitions.size() == 0) {
        marshallNode(throwEvent,
                     properties,
                     "IntermediateEvent",
                     plane,
                     generator,
                     xOffset,
                     yOffset);
    } else if (eventDefinitions.size() == 1) {
        EventDefinition eventDefinition = eventDefinitions.get(0);
        if (eventDefinition instanceof SignalEventDefinition) {
            marshallNode(throwEvent,
                         properties,
                         "IntermediateSignalEventThrowing",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else if (eventDefinition instanceof MessageEventDefinition) {
            marshallNode(throwEvent,
                         properties,
                         "IntermediateMessageEventThrowing",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else if (eventDefinition instanceof EscalationEventDefinition) {
            marshallNode(throwEvent,
                         properties,
                         "IntermediateEscalationEventThrowing",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else if (eventDefinition instanceof CompensateEventDefinition) {
            marshallNode(throwEvent,
                         properties,
                         "IntermediateCompensationEventThrowing",
                         plane,
                         generator,
                         xOffset,
                         yOffset);
        } else {
            throw new UnsupportedOperationException("Event definition not supported: " + eventDefinition);
        }
    } else {
        throw new UnsupportedOperationException("None or multiple event definitions not supported for intermediate throw event");
    }
}
 
开发者ID:kiegroup,项目名称:kie-wb-common,代码行数:60,代码来源:Bpmn2JsonMarshaller.java

示例12: getFixture

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * Returns the fixture for this Compensate Event Definition test case.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
protected CompensateEventDefinition getFixture() {
	return (CompensateEventDefinition) fixture;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:11,代码来源:CompensateEventDefinitionTest.java

示例13: caseCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * Returns the result of interpreting the object as an instance of '<em>Compensate Event Definition</em>'.
 * <!-- begin-user-doc -->
 * This implementation returns null;
 * returning a non-null result will terminate the switch.
 * <!-- end-user-doc -->
 * @param object the target of the switch.
 * @return the result of interpreting the object as an instance of '<em>Compensate Event Definition</em>'.
 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
 * @generated
 */
public T caseCompensateEventDefinition(CompensateEventDefinition object) {
	return null;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:15,代码来源:Bpmn2Switch.java

示例14: createCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public CompensateEventDefinition createCompensateEventDefinition() {
	CompensateEventDefinitionImpl compensateEventDefinition = new CompensateEventDefinitionImpl();
	return compensateEventDefinition;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:10,代码来源:Bpmn2FactoryImpl.java

示例15: caseCompensateEventDefinition

import org.eclipse.bpmn2.CompensateEventDefinition; //导入依赖的package包/类
/**
 * Returns the result of interpreting the object as an instance of '<em>Compensate Event Definition</em>'.
 * <!-- begin-user-doc -->
 * This implementation returns null;
 * returning a non-null result will terminate the switch.
 * <!-- end-user-doc -->
 * @param object the target of the switch.
 * @return the result of interpreting the object as an instance of '<em>Compensate Event Definition</em>'.
 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
 * @generated
 */
public T caseCompensateEventDefinition(CompensateEventDefinition object) {
    return null;
}
 
开发者ID:fixteam,项目名称:fixflow,代码行数:15,代码来源:Bpmn2Switch.java


注:本文中的org.eclipse.bpmn2.CompensateEventDefinition类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。