Can you just add public boolean isCanceled() and boolean isConfirmed() to class Order1 ? Orika will auto map it
Or
Use you can create a converter StatusConverter taking String parameter, register it
converterFactory.registerConverter("canceled", new StatusConverter("Canceled"));
converterFactory.registerConverter("confirmed", new StatusConverter("Confirmed"));
Then
mapperFactory.classMap(Order1.class, Order2.class)
.fieldMap("status", "canceled").converter("canceled").add()
.fieldMap("status", "confirmed") .converter("confirmed").add()
.byDefault().register();
this converter should convert String to Boolean, return true if the given parameter is equals to the value.