Skip to content

Instantly share code, notes, and snippets.

@aswinrajeevofficial
Created November 12, 2021 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aswinrajeevofficial/5d09d76ae11a1dc78c7d1fc388ae0306 to your computer and use it in GitHub Desktop.
Save aswinrajeevofficial/5d09d76ae11a1dc78c7d1fc388ae0306 to your computer and use it in GitHub Desktop.
Using variables for KEY and PRIORITY in Custom Order Status Implementation
@Component(
property = {
"commerce.order.status.key=" + M4V7SchedulingCommerceOrderStatus.KEY,
"commerce.order.status.priority:Integer=" + M4V7SchedulingCommerceOrderStatus.PRIORITY
},
service = CommerceOrderStatus.class
)
public class M4V7SchedulingCommerceOrderStatus implements CommerceOrderStatus {
public static final int KEY = 314159265;
public static final int PRIORITY = 40;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment