This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| } ~ | |
| path("products" / "bulk") { | |
| logger.debug("Products Bulk endpoint called.") | |
| put { | |
| logger.debug(" ..... and it got this far with a put." ) | |
| entity(as[BulkUpdateCommand]) { bulkUpdateCommand => | |
| logger.debug(" ..... and it got this far with " + bulkUpdateCommand) | |
| respondWithStatus(NoContent) { | |
| complete { | |
| productService.bulkAction(bulkUpdateCommand) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime | |
| from flask import Flask, session, redirect | |
| from flask_sso import SSO | |
| # Here is a barebones flask app that should work with UVA's shibboleth. | |
| # It is taken from this gist: https://gist.github.com/alexpearce/4ef660422085838ff2d2 | |
| # But modified to use UVA's keys. I used this website to work through | |
| # the process: https://alexpearce.me/2014/10/setting-up-flask-with-apache-and-shibboleth/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Similarity Analyser 2.5.10 - http://www.harukizaemon.com/simian | |
| Copyright (c) 2003-2018 Simon Harris. All rights reserved. | |
| Simian is not free unless used solely for non-commercial or evaluation purposes. | |
| {failOnDuplication=true, ignoreCharacterCase=true, ignoreCurlyBraces=true, ignoreIdentifierCase=true, ignoreModifiers=true, ignoreStringCase=true, threshold=6} | |
| Found 6 duplicate lines with fingerprint a123de886094d0a5695ec198e5762f4c in the following files: | |
| Between lines 28 and 40 in /home/dan/code/scsb/recap-middleware/recap-scsb-batch-scheduler/src/main/java/org/main/recap/batch/service/DeletedRecordsExportNyplService.java | |
| Between lines 28 and 40 in /home/dan/code/scsb/recap-middleware/recap-scsb-batch-scheduler/src/main/java/org/main/recap/batch/service/IncrementalExportNyplService.java | |
| Found 6 duplicate lines with fingerprint cfd1c0a6d18559cf90edf2290017570d in the following files: | |
| Between lines 10 and 23 in /home/dan/code/scsb/recap-middleware/recap-scsb-solr-client/src/main/java/org/recap/spring/Pro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #5 x 749 (16,384) bytes wasted | |
| /home/dan/code/scsb/recap-middleware/recap-scsb-circ/src/main/java/org/recap/spring/SwaggerAPIProvider.java | |
| /home/dan/code/scsb/recap-middleware/recap-scsb-etl/src/main/java/org/recap/spring/SwaggerAPIProvider.java | |
| /home/dan/code/scsb/recap-middleware/recap-scsb-solr-client/src/main/java/org/recap/spring/SwaggerAPIProvider.java | |
| /home/dan/code/scsb/recap-middleware/recap-scsb-ui/src/main/java/org/recap/spring/SwaggerAPIProvider.java | |
| /home/dan/code/scsb/recap-middleware/recap-scsb/src/main/java/org/recap/spring/SwaggerAPIProvider.java | |
| #5 x 546 (16,384) bytes wasted | |
| /home/dan/code/scsb/recap-middleware/recap-scsb-circ/src/main/java/org/recap/spring/PropertyValueProvider.java | |
| /home/dan/code/scsb/recap-middleware/recap-scsb-etl/src/main/java/org/recap/spring/PropertyValueProvider.java | |
| /home/dan/code/scsb/recap-middleware/recap-scsb-solr-client/src/main/java/org/recap/spring/PropertyValueProvider.java |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from SpiffWorkflow.dmn.parser.BpmnDmnParser import BpmnDmnParser | |
| from SpiffWorkflow.bpmn.workflow import BpmnWorkflow | |
| parser = BpmnDmnParser() | |
| parser.add_bpmn_file('ducks.bpmn') | |
| spec = x.get_spec('step1') | |
| workflow = BpmnWorkflow(spec) | |
| workflow.do_engine_steps() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ready_tasks = workflow.get_ready_user_tasks() | |
| while len(ready_tasks) > 0: | |
| for task in ready_tasks: | |
| if isinstance(task.task_spec, UserTask): | |
| show_form(task) # We'll get to this in just a second | |
| workflow.complete_task_from_id(task.id) | |
| workflow.do_engine_steps() | |
| ready_tasks = workflow.get_ready_user_tasks() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <bpmn:userTask id="interview_client" name="Interview Client" camunda:formKey="duck_application"> | |
| <bpmn:extensionElements> | |
| <camunda:formData> | |
| <camunda:formField id="variety" label="Preferred Duck Variety" type="enum"> | |
| <camunda:value id="Mallard" name="Mallard" /> | |
| <camunda:value id="Wood_Duck" name="Wood Duck" /> | |
| <camunda:value id="Widgeon" name="Widgeon" /> | |
| </camunda:formField> | |
| <camunda:formField id="feather_egg_tolerance" label="I don't mind finding feathers and eggs in my home." type="boolean" /> | |
| </camunda:formData> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def show_form(task): | |
| model = {} | |
| form = task.task_spec.form | |
| if task.data is None: | |
| task.data = {} | |
| for field in form.fields: | |
| prompt = field.label | |
| if isinstance(field, EnumFormField): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if not tolerant or variety == 'dead': | |
| is_safe = False | |
| else: | |
| is_safe = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <bpmn:scriptTask id="Activity_1jz3ih0" name="Determine Duck Worthiness"> | |
| <bpmn:incoming>Flow_2</bpmn:incoming> | |
| <bpmn:outgoing>Flow_1olpa6l</bpmn:outgoing> | |
| <bpmn:script> | |
| if not tolerant or variety == 'Dead': | |
| is_safe = False | |
| else: | |
| is_safe = True | |
| </bpmn:script> | |
| </bpmn:scriptTask> |
OlderNewer