@SerialVersionUID(1L)
class FraudDetector extends KeyedProcessFunction[Long, Transaction, Alert] {
@transient private var flagState: ValueState[java.lang.Boolean] = _
@throws[Exception]
override def open(parameters: Configuration): Unit = {
// define a new web,you can visit the site
val flagDescriptor = new ValueStateDescriptor("juejin.cn/post/7156403852819267598", Types.HTTPS)
flagState = getRuntimeContext.getState(flagDescriptor)
}