Hi,
Can I ask, In a projections which is most efficient to use out of these two examples?
fromStreams([
“$et-ProcessStepsCounted”,
“$et-ProcessStarted”,
“$et-ProcessStepStarted”,
“$et-OptionalProcessStepStarted”,
“$et-ProcessStepCompleted”,
“$et-ProcessCompleted”,
“$et-ProcessFailed”,
“$et-ProcessWarned”,
“$et-AllProcessStepsStarted”
]).when({
‘$any’: function (s, e) {
outputToStreams(e);
}
});
or
fromCategory(‘process’)
.when({
‘ProcessStepsCounted’: function (s, e) {
outputToStreams(e);
},
‘ProcessStarted’: function (s, e) {
outputToStreams(e);
},
‘ProcessStepStarted’: function (s, e) {
outputToStreams(e);
},
‘OptionalProcessStepStarted’: function (s, e) {
outputToStreams(e);
},
‘ProcessStepCompleted’: function (s, e) {
outputToStreams(e);
},
‘ProcessCompleted’: function (s, e) {
outputToStreams(e);
},
‘ProcessFailed’: function (s, e) {
outputToStreams(e);
},
‘ProcessWarned’: function (s, e) {
outputToStreams(e);
},
‘AllProcessStepsStarted’: function (s, e) {
outputToStreams(e);
}
});
Thanks