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;
}
Aggregations