项目作者: sunyuyangg555

项目描述 :
STAF eXecute engine with pf4j plugin framework to support easy develop plugins
高级语言: Python
项目地址: git://github.com/sunyuyangg555/STAX.git
创建时间: 2021-04-26T07:45:28Z
项目社区:https://github.com/sunyuyangg555/STAX

开源协议:Apache License 2.0

下载


STAX

Open Source STAF service .

Architect:

STAX

Features:

  • 1、 stax service upgrade jython2.5 to jython2.7;
  • 2、 stax support function STAX event;
  • 3、 stax support plugins with pf4j

Plugins:

  • 1、 xfs plugin using xfs-service
  • 2、 pe plugin support
    ```





  1. Build:
  2. ---------
  3. Run the bellow command:

git clone https://github.com/sunyuyangg555/STAX.git
cd stax
gradle clean build

  1. Use plugins
  2. copy `build/plugins/*-*.zip` to `c:/STAF/service/stax/plugins` dir
  3. How to use:
  4. ---------
  5. create a test xml:

<?xml version=”1.0” encoding=”UTF-8” standalone=”no”?>
<!DOCTYPE stax SYSTEM “stax.dtd”>







‘your.xfs.sp.logicalname’



[0, ‘’]


{
‘number’: ‘0’,
‘retract’: {
‘retractArea’: ‘RA_RETRACT’,
‘outputPosition’: ‘NULL’,
‘index’: ‘0’
},
‘outputPosition’: ‘NULL’,
}

STAFResult




  1. this xml script do:
  2. - 1use `dis` a CEN/XFS cdm service to `open` a connection.
  3. - 2use `status` to get device status
  4. - 3check the device status is ONLINE
  5. - 4if not then `reset`
  6. current STAX service support xml elements:

<!ENTITY % task ‘control-media | beep | card-unit-info |
fig | release | export-rsa-issuer-signed-item |
set-guid-light | raw-data | ccu |
block | if | form-list |
cash-unit-info | signalhandler | eject-slot-start |
epp | retain-slot-end | cash-in-start |
retain-card | script | call-with-map |
delay | ukey-isr | doc |
reset | terminate | reset-count |
card-isr | media-list | start-exchange |
status | read-form | log |
eject-card | configure-note-types | cash-in-end |
digitalio | bcr | initialization |
set-cash-unit-info | iterate | print-form |
break | read-input | rtn |
testcase | breakpoint | call |
write-raw-data | throw | retract |
cash-in-rollback | end-exchange | return |
open | acc | import-rsa-public-key |
retain-slot-start | action-keys | read-raw-data |
hold | dis | loop |
continue | raise | dispense-card |
mcr | enable-events | cash-in-status |
mcr-idc | dispense | trd |
jnl | import-key | sequence |
set-card-unit-info | idr | currency-exp |
try | job | fdk-keys |
psb | retain-slot-start-ex | import |
crypt | nop | stafcmd |
timer | dialog | parallel |
hcr | paralleliterate | note-type-list |
read-image | on | rethrow |
process | capabilities | ini |
isr-idc | message | cash-in |
call-with-list | rpt | slots-info |
open-shutter | close-shutter | tcstatus’>
```

License

Code of STAX is licensed under [Apache License 2.0][10].