mirror of https://github.com/apache/nifi.git
NIFI-232:
- Adding a note in the UI that the Event Driven scheduling strategy is experimental.
This commit is contained in:
parent
9531219293
commit
edaa191d37
|
@ -102,6 +102,10 @@
|
|||
<div type="text" id="scheduling-strategy-combo"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="event-driven-warning" class="hidden">
|
||||
<div id="event-driven-warning-icon"></div>
|
||||
This strategy is experimental
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div id="timer-driven-options" class="setting">
|
||||
|
|
|
@ -111,6 +111,21 @@ div.processor-enabled-container {
|
|||
line-height: 18px;
|
||||
}
|
||||
|
||||
#event-driven-warning {
|
||||
padding-top: 22px;
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
#event-driven-warning-icon {
|
||||
float: left;
|
||||
margin-top: -2px;
|
||||
margin-right: 5px;
|
||||
margin-left: 5px;
|
||||
width: 18px;
|
||||
height: 16px;
|
||||
background-image: url(../images/iconAlert.png);
|
||||
}
|
||||
|
||||
#auto-terminate-relationship-names {
|
||||
border: 0 solid #CCCCCC;
|
||||
height: 280px;
|
||||
|
|
|
@ -37,14 +37,14 @@ nf.ProcessorConfiguration = (function () {
|
|||
strategies.push({
|
||||
text: 'Event driven',
|
||||
value: 'EVENT_DRIVEN',
|
||||
description: 'Processor will be scheduled to run when triggered by an event (e.g. a FlowFile enters an incoming queue).'
|
||||
description: 'Processor will be scheduled to run when triggered by an event (e.g. a FlowFile enters an incoming queue). This scheduling strategy is experimental.'
|
||||
});
|
||||
} else if (processor.config['schedulingStrategy'] === 'EVENT_DRIVEN') {
|
||||
// the processor was once configured for event driven but no longer supports it
|
||||
strategies.push({
|
||||
text: 'Event driven',
|
||||
value: 'EVENT_DRIVEN',
|
||||
description: 'Processor will be scheduled to run when triggered by an event (e.g. a FlowFile enters an incoming queue).',
|
||||
description: 'Processor will be scheduled to run when triggered by an event (e.g. a FlowFile enters an incoming queue). This scheduling strategy is experimental.',
|
||||
disabled: true
|
||||
});
|
||||
}
|
||||
|
@ -506,17 +506,23 @@ nf.ProcessorConfiguration = (function () {
|
|||
select: function (selectedOption) {
|
||||
// show the appropriate panel
|
||||
if (selectedOption.value === 'EVENT_DRIVEN') {
|
||||
$('#event-driven-warning').show();
|
||||
|
||||
$('#timer-driven-options').hide();
|
||||
$('#event-driven-options').show();
|
||||
$('#cron-driven-options').hide();
|
||||
} else if (selectedOption.value === 'CRON_DRIVEN') {
|
||||
$('#timer-driven-options').hide();
|
||||
$('#event-driven-options').hide();
|
||||
$('#cron-driven-options').show();
|
||||
} else {
|
||||
$('#timer-driven-options').show();
|
||||
$('#event-driven-options').hide();
|
||||
$('#cron-driven-options').hide();
|
||||
$('#event-driven-warning').hide();
|
||||
|
||||
if (selectedOption.value === 'CRON_DRIVEN') {
|
||||
$('#timer-driven-options').hide();
|
||||
$('#event-driven-options').hide();
|
||||
$('#cron-driven-options').show();
|
||||
} else {
|
||||
$('#timer-driven-options').show();
|
||||
$('#event-driven-options').hide();
|
||||
$('#cron-driven-options').hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue