Search in sources :

Example 1 with RuleNodeStateId

use of org.thingsboard.server.common.data.id.RuleNodeStateId in project thingsboard by thingsboard.

the class RuleNodeStateEntity method toData.

@Override
public RuleNodeState toData() {
    RuleNodeState ruleNode = new RuleNodeState(new RuleNodeStateId(this.getUuid()));
    ruleNode.setCreatedTime(createdTime);
    ruleNode.setRuleNodeId(new RuleNodeId(ruleNodeId));
    ruleNode.setEntityId(EntityIdFactory.getByTypeAndUuid(entityType, entityId));
    ruleNode.setStateData(stateData);
    return ruleNode;
}
Also used : RuleNodeStateId(org.thingsboard.server.common.data.id.RuleNodeStateId) RuleNodeState(org.thingsboard.server.common.data.rule.RuleNodeState) RuleNodeId(org.thingsboard.server.common.data.id.RuleNodeId)

Aggregations

RuleNodeId (org.thingsboard.server.common.data.id.RuleNodeId)1 RuleNodeStateId (org.thingsboard.server.common.data.id.RuleNodeStateId)1 RuleNodeState (org.thingsboard.server.common.data.rule.RuleNodeState)1