Can i a create my own custom snap in snaplogic?
Hi , Can i create my own custom snaps in snaplogic? does snap logic support Java to run my logic? if it support and it requires extra packages how can we install? not only java even in python or any another language ? Thanks & Regards Suresh Maturi3.6KViews0likes2CommentsCustom snap Guice error
Hi, We are facing the following error with my custom snap. Has anyone faced this error, is this a known issue? My custom snap pack is a simple one with a snap and an account. Seems like the account injection is failing at certain point, a restart resolves the issue for a while and then the issue appears again out of the blue. First I thought it could be because the snap pack were deployed at multiple project, but then we cleaned it up and now snap pack is deployed only on the root shared folder, still we are facing the error. Any clue?3.1KViews1like2CommentsUnicode Custom Snap
Hi, I am trying to get the output of the Json in my custom snap. http://developer.snaplogic.com/#reading-documents-from-an-input-view But I get question marks instead of special characters (ÖÄ) in Document class. How can I make it use the correct encoding?2.3KViews0likes0CommentsLog4j2 customization
Hi, Is it possible to customize log4j2.xml to route the custom snap (specific package) to different log file on ground plex with different pattern? Looks like the log4j2-jcc.xml gets reset every time the jcc is restarted, not sure where it gets the original configurations. Much appreciated if anyone could assist. Regards, SripathiSolved3.4KViews0likes2CommentsCustom Snap for h2 database
Hi, I have created a custom snap to connect to h2 database and its working except Ultra.So I added lineage code like below. Map<String, Object> data = new LinkedHashMap<>(); data.put("Value", result); Document seed = documentUtility.newDocument(data); Document newDocumentWithLineage = documentUtility.newDocument(seed,originalDocument); outputViews.write(seed,originalDocument); It is giving output in ultra but the problem is,it is iterating for 5 times as its not getting ackowledge message from JMS que.Attaching the stack trace.Please advice me on this issue. Thanks and Regards, Ashlam log.txt (19.8 KB)3.8KViews0likes2CommentsCustom Snap
I can’t able to get the values from previous snap.I used mapper to set a value and retrieve using expression from previous snap but getting error alike cannot set null value. @General(title = “Example snap”, purpose = “”, author = “”) @Category(snap = SnapCategory.READ) @Version(snap = 1) @Inputs(min = 1, max = 1, accepts = { ViewType.DOCUMENT }) @Outputs(min = 1, max = 1, offers = { ViewType.DOCUMENT }) @Errors(min = 1, max = 1, offers = { ViewType.DOCUMENT }) public class ExampleSnap implements Snap { private static final String CACHE_DATA_ID = "Key"; private String Key; private String valueCategory; @Inject private DocumentUtility documentUtility; @Inject private InputViews inputViews; @Inject private OutputViews outputViews; @Inject private ErrorViews errorViews; @Override public void defineProperties(final PropertyBuilder propBuilder) { propBuilder.describe(CACHE_DATA_ID, CACHE_DATA_ID).expression().schemaAware(SnapProperty.DecoratorType.ACCEPTS_SCHEMA) .add(); } @Override public void configure(PropertyValues propertyValues) throws ConfigurationException { valueCategory = propertyValues.getAsExpression(CACHE_DATA_ID).eval(null); } Please give some suggestion.4KViews0likes3Comments