All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codingapi.springboot.flow.creator.DefaultTitleCreator Maven / Gradle / Ivy

package com.codingapi.springboot.flow.creator;

import com.codingapi.springboot.flow.domain.FlowRecord;

public class DefaultTitleCreator implements ITitleCreator {

    @Override
    public String createTitle(FlowRecord record) {
        if (record.getNode().isOver()) {
            return String.format("%s-%s",
                    record.getNode().getFlowWork().getTitle(),
                    record.getNode().getName());
        }
        return String.format("%s-%s-%s",
                record.getNode().getFlowWork().getTitle(),
                record.getNode().getName(),
                record.getOperatorUser().getName());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy